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.
Ubuntu是最常用Linux发行版。 Canonical为Ubuntu台式机和服务器提供企业支持。 netstat是易于使用的网络操作工具。 在本教程中,我们将研究如何解决netstat: command not found错误,并将netstat工具安装到Ubuntu和Debian。
搜索Netstat软件包 (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.
使用Net-Tools软件包安装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 .
If we need or want to check alternative to the netstat we can look following commands.
如果我们需要或想要检查netstat替代方法,我们可以查看以下命令。
ss ss
nstat 统计
lsof
lsof
什么是Netstat-Nat软件包 (What is Netstat-Nat Package)
When searching for netstat command 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.