[PLUG] command of the day
Keith Nasman
keith at ahapala.net
Tue Mar 9 15:41:02 UTC 2004
Although I've used lsof before I don't know why I didn't come across
this earlier.
keith at r31:~$ lsof -i | head -n 4
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
evolution 1634 keith 38u IPv4 4040 TCP 10.0.0.199:32850->presto:imap2 (ESTABLISHED)
ssh 2790 keith 3u IPv4 6429 TCP 10.0.0.199:32941->ahapala.net:ssh (ESTABLISHED)
synergys 2856 keith 5u IPv4 6958 TCP *:24800 (LISTEN)
one command gets you all the commands, pids, users, ports and
connections on one screen. If you run it as root you'll see ALL the
network connections.
Keith
More information about the PLUG
mailing list