netstat commands Flashcards
1
Q
netstat -a
A
displays all open ports, including both active TCP and UDP connections and ports in the listening state
2
Q
netstat -t
A
TCP connections
3
Q
netstat -u
A
UDP connections
4
Q
netstat -w
A
raw connections
5
Q
netstat -x
A
UNIX sockets/locak server ports
6
Q
netstat -l
A
just ports
7
Q
netstat -n
A
displays ports and addresses in numerical format
8
Q
netstat -p
A
Switch with the protocol type
9
Q
netstat -o
A
On Windows shows pid that has opened the port
10
Q
netstat -b
A
On Windows shows the process name
11
Q
netstat -p
A
shows PID and process name on linux
12
Q
netstat -s
A
reports per protocol statistics
13
Q
netstat nn
A
Windows is the refresh interval in seconds (ctr + c to stop)
14
Q
netstat -c
A
Linux is the refresh interval in seconds (ctr + c to stop)