Networking 101 : Netstat : "-bash: system: command not found" error

After running the "netstat" command we get the below error:

-bash: system: command not found" error message

It means that the net-tools package is missing on the system .
The package net-tools is a collection of network utilities like rarp, mii-tool,.. and it needs to be installed.

Installing the "net_tools" on debian:

Netstat is being replaced by other tools, for example, we could use:

Instead of:

Netstat replacement:

We could use also the "ss" utility to show information about the sockets.
For example to display all the "listening sockets", we use:

To display the UDP sockets, we use:

To display TCP sockets, we use the command:


Leave as a comment: