Skip to content

bash: netstat: command not found – Ubuntu/Debian

Covers
Debian, Ubuntu

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.

Error:

bash: netstat: command not found

Solution:

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.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top