bash: netstat: command not found


Error:
bash: netstat: command not found

Reason:

You do not have net-tools installed on your linux/ubuntu operating system of which netstat is a part of.


Solution:

Install net-tools using package tool such as apt-get,

# apt-get install net-tools
..
The following NEW packages will be installed:
  net-tools
...
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 net-tools arm64 1.60+git20180626.aebd88e-1ubuntu1 [194 kB]
Fetched 194 kB in 1s (242 kB/s)    
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package net-tools.
(Reading database ... 20276 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_arm64.deb ...
Unpacking net-tools
Setting up net-tools ...
netstat


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap