Use netstat to See Internet Connections
Using netstat, you can monitor programs that are making connections to remote hosts:
$ netstat -tpe
The -t flag limits the output to show only TCP connections. The -p flag displays the PID and name of the program making the connection. The -e flag displays extra information, such as the user name under which each program is running.










This week 5 lucky Members will receive a copy of The Official Ubuntu Server Book by Benjamin Mako Hill and Linux Journal's very own Kyle Rankin. No entry necessary. Check back here early next week to find out who the lucky Online Members are.




Comments
Just as a reminder, using -n
Just as a reminder, using -n option (for numeric) bypasses sometimes slow reverse DNS lookups. :)
serviced apartments liverpool
Netstat is the best tool for command line and to display network connections.
Netstat is the best tool for
Netstat is the best tool for command line and to display network connections.
my .bashrc alias
my
.bashrc
alias n='netstat -p -a -A inet'
alias n6='netstat -p -a -A inet6'
alias nn='netstat -pn -a -A inet'
alias nn6='netstat -pn -a -A inet6'
Thanks ...
Thanks ...
Post new comment