Skip to main content

Linux command: netstat

netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

List of options

    -a: all
    -l: listening
    -s: statistics
    -r: routing table
    -i: interface
    -n: no resolve IP address to hostname
    -u: unix
    -p: PID

Check open ports with netstat

netstat -tupln | grep LISTEN

Popular posts from this blog

GNU nano Text Editor

nano - Nano's ANOther editor, an enhanced free Pico clone

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

Using Powershell to manage Hyper-V

Common powershell cmdlets to manage Hyper-V.