Skip to content

Commit

Permalink
some notes on how to use netstat
Browse files Browse the repository at this point in the history
  • Loading branch information
textarcana-automation committed Dec 6, 2012
1 parent e914352 commit 98db51c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bash/netstat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ while true;do \
sleep 5 && \
clear; \
done

# and here are some actual netstat tips, for Linux systems:

netstat -a | egrep 'Proto|LISTEN'

# for port numbers instead of service names:

netstat -an | egrep 'Proto|LISTEN'

# show open ports and their processes:

netstat -lnptu

0 comments on commit 98db51c

Please sign in to comment.