If you look into a directory you will see files and subdirectories but occasionally there are things as files but they are identified as sockets. So what are sockets?

Sockets is a way to communicate to other processes. Accessing them is as open a file, but instead reading or writing data from a file, data is sent or received to an other process. This is not an unique approach since device drivers work the same way. TCP/IP makes also use of sockets, but sockets are not just restricted to TCP/IP other applications can create sockets (as lirc, nxtvepg, ... ).

The ls -l command shows sockets with the s character.

Linurs Servernest startpage