Real world usage of NETSTAT command?

TechnoPro

Golden Member
Jul 10, 2003
1,727
0
76
Just curious about how people use it as a tool... I use other command line networking tools extensively and want to learn more about this one. Thanks.
 
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
netstat -rn gives me routing information.
netstat -an shows me open connections and open ports.

That's generally about all I use it for.
 

Southerner

Member
Jun 21, 2001
129
0
0
netstat -an when I'm trying to figure out what connections are open. Netstat -an | grep -c :80 when trying to figure out how many instances of Apache are running (and whether that exceeds current limits.) It's useful.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Southerner
netstat -an when I'm trying to figure out what connections are open. Netstat -an | grep -c :80 when trying to figure out how many instances of Apache are running (and whether that exceeds current limits.) It's useful.

ps -auxww | grep httpd

;)