In case you are looking for an alternate of netstat command, it's called ss
By default ss command is shipped with package called iproute (Advanced IP
routing and network device configuration tools)
Introduction of ss
ss command is another utility to investigate sockets. It is used to dump
socket statistics. It shows information similar to netstat and displays
more TCP and state informations than most other tools. It's considered as
alternate of netstat command also.
Check ss version
Use the -V argument with ss command. It will show the version information
# ss -V
ss utility, iproute2-ss130716
Examples with ss command utility
Example 1. Display only listening sockets...