command overview
- netstat -a
- Displays all of the current connections and listening ports on the system
- netstat -t
- netstat -u
- netstat -at
- netstat -au
- netstat -r
- netstat -l
- netstat -lx
- list linux listenig ports
- netstat -lp
- display all the listening ports (both TCP and UDP) along with the process IDs and the names of the programs
- netstat -s
-
*netstat -an |
grep ‘:[port number]’* |
- netstat -nao
- will tell you what ports your system has listening, as well as what you are connected to via TCP
- netstat -naob
- This gives you the process name rather than the process ID (run as Administrator)
source