What are the device numbers reported by lsof
?
I read the man page, Identify devices from lsof, and this.
Still I do not know what is its meaning. In particular, for this case, what can I infer from the numbers?
$ lsof -ai tcp -c vino-server
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
vino-serv 4011 user1 12u IPv4 27353 0t0 TCP *:5900 (LISTEN)
vino-serv 4011 user1 11u IPv6 27352 0t0 TCP *:5900 (LISTEN)
vino-serv 4011 user1 14u IPv4 7506511 0t0 TCP XXXXXXXXXX (ESTABLISHED)
In this case, each of these is the inode number of the corresponding socket. You have listed open TCP sockets, and sockets are identified by their inode number. You can see the same numbers if you do
ls -l /proc/<pid>/fd
orls -Lli /proc/<pid>/fd
(in this case,<pid>
is 4011). You can use the inode number when looking for information about that socket (e.g., in/proc/net/tcp
or thess
command).