Debian Ubuntu “netstat: command not found” Error Solution and Netstat Installation
Ubuntu is most used Linux distributions. Canonical provides enterprise support for Ubuntu desktops and servers.
netstat is easy to use tool for network operations. In this tutorial we will look how to solve
netstat: command not found error and install
netstat tool to the Ubuntu and Debian.
Search Netstat Packages
Ubuntu and Debian systems uses
deb packages which is managed with
apt online package manager. We will use
apt to search
netstat related package.
$ apt search netstat
Install Netstat with Net-Tools Package
As we see in previous step
netstat search listed a lot of package names. The package which provides
netstat command is
net-tools and we will install is with
apt install .
$ sudo apt install net-tools
Alternatives of Netstat
If we need or want to check alternative to the
netstat we can look following commands.
What is Netstat-Nat Package
When searching for
apt will list
netstat-nat package which provides network related commands focused on NAT . We can get detailed information about
netstat-nat package with the following command.
$ apt show netstat-nat