What I like about UNIX: Everything is a file.
Except of processes.
And sockets.
And XWindows.
Except of processes.
And sockets.
And XWindows.
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.htm...
http://www.linuxjournal.com/content/more-using-bashs-built-d...
X is just a protocol, you can happily think about X apps in terms of processes and sockets.