master
Raw Download raw file

date: “2017-01-17” draft: false title: “netstat” tag: [“cli”, “commands”] category: “unix”


Summary - netstat

OS Default Available Online Man
Linux Y/N netstat
Solaris Y/N netstat
BSD Y/N netstat
MacOS Y/N netstat
Basics Command
Version netstat --version
Usage info netstat -h
Man man netstat

Usage - netstat

Print network connections, routing tables, and more!

Examples

netstat OS description
netstat -antup Linux all, numerical, tcp, udp, process ID
netstat -anP tcp Solaris all, numerical, tcp
netstat -anP udp Solaris all, numerical, udp

Reference Materials - netstat

See Also

  • [pfiles](({{< relref “unix/commands/pfiles.md” >}}) - solaris version of lsof (can be used to lists open sockets)
  • [lsof](({{< relref “unix/commands/lsof.md” >}}) - can be used to lists open sockets