Contents
How do I view a socket file in Linux?
1 Answer. A socket is a file for processes to exchange data. You can see more data about it using the netstat , lsof , and fuser commands.
Where is the socket file?
The default location for the Unix socket file that the server uses for communication with local clients is /tmp/mysql. sock . (For some distribution formats, the directory might be different, such as /var/lib/mysql for RPMs.)