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

Microsoft AI Shell: Notes

AI Shell

Arch Linux: Notes from the Field

Official website of Arch Linux, a lightweight and flexible Linux® distribution that tries to Keep It Simple: https://www.archlinux.org/

AWS Lightsail: Notes

One of ways to learn AWS is start with https://aws.amazon.com/lightsail/ , first month is free.