Ubuntu Install Netstat
If you are running Ubuntu and somehow don’t have the netstat command installed you might find yourself searching for “Ubuntu install netstat”. That’s probably how you found yourself here, on this page. Normally, you should probably already have the netstat command by default. If not, you can add it with the following commands on Ubuntu. On Ubuntu, netstat is included in the net-tools package.
sudo apt update # get updated repo info sudo apt install net-tools # install net-tools netstat -ntulpe # test it
Also see our Netstat Cheat Sheet for every netstat option you could possibly need.