Skip to main content

What is a simple & common command line tool to show network usage on a Linux machine? [Resolved]

I'm looking for a simple command line linux tool that will show me the current network usage, the same way top displays CPU usage.

What is the most standard tool (I can't install new things on the server) that will do the task. I don't need anything fancy and a simple text based tool will do.

Question Credit: Boaz
Question Reference
Asked September 19, 2019
Tags: linux
Posted Under: Network
2 Answers

Here are two tools that are worth checking out, although they are probably not available by default on your distribution :

  • nethogs : a simple tool that will display the network usage by process :

alt text

  • tcptrack is also very good, especially on a gateway - you can get the bandwidth used by any IP adress coming in or out your server :

alt text
(source: steve at

credit: Glorfindel
Answered September 19, 2019

On top of what pQd has mentioned, one of my favourites is pktstat instead. I often used that.

credit: sybreon
Answered September 19, 2019

My favorite so far is ifstatus. It is curses based so it works in a terminal and it gives a graph of your traffic history over time (fully configurable).

credit: SiegeX
Answered September 19, 2019

ntop might be what you are looking for.

credit: lorenzog
Answered September 19, 2019

List open conncetions

lsof -i :80

List all services called httpd

lsof -i -nP | grep httpd

credit: DrDol
Answered September 19, 2019

You can use nload that does not require root privileges for a simple view of bandwidth usage


You can use iftop that require root privileges in order to understand the connection in/out from your network card (use SHIFT+S for a more complete view)


You can compile the software with a stanrdard gcc.

credit: alessiosavi
Answered September 19, 2019
Your Answer