After launching a new Ubuntu system, I found that it doesn’t have netstat command installed. When tried to execute netstat command, found the below error message on terminal. This tutorial will help you to install netstat command on Ubuntu and Debian system.
The net-tools package provides large number of utilities for managing networking on a system. Which is available under the default apt repositories.
Open a terminal and execute following command:
sudo apt install net-tools
Press ‘y’ if prompt for the confirmation.
That’s it, You have installed netstat command on your Ubuntu and Debian systems.