Install netstat command from net-tools package on Ubuntu 22.10

In this article, I will be demonstrating how to install netstat on Ubuntu.

d2@server:~$ sudo apt install net-tools
[sudo] password for d2:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 60 not upgraded.
Need to get 204 kB of archives.
After this operation, 819 kB of additional disk space will be used.
Get:1 kinetic/main amd64 net-tools amd64 1.60+git20181103.0eebece-1ubuntu5 [204 kB]
Fetched 204 kB in 1s (188 kB/s)
Selecting previously unselected package net-tools.
(Reading database … 160209 files and directories currently installed.)
Preparing to unpack …/net-tools_1.60+git20181103.0eebece-1ubuntu5_amd64.deb …
Unpacking net-tools (1.60+git20181103.0eebece-1ubuntu5) …
Setting up net-tools (1.60+git20181103.0eebece-1ubuntu5) …
Processing triggers for man-db (2.10.2-2) …
d2@server:~$ sudo netstat -plunt | head -n 5
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN 472/systemd-resolve
tcp 0 0* LISTEN 670/nginx: master p
tcp 0 0* LISTEN 472/systemd-resolve

Leave a Reply