Skip to content

Q&A · Answered

How to monitor network traffic on Linux

asked 9 months, 1 week ago 697 views 1 answer
10

I want to see what network traffic is happening on my server. What tools can I use?

1 Answer

One accepted
17

Accepted answer

Not confirmed since it was written, 9 months, 1 week ago
# Real-time bandwidth per interface
sudo apt install iftop
sudo iftop -i eth0

# Network statistics
nethogs
nload

# Connection monitoring
sudo netstat -tunap
sudo ss -tunap

# Packet capture
sudo tcpdump -i eth0 port 80

# Check bandwidth usage
vnstat -d

Your answer

Say what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.

Shown beside your answer and never checked, so it cannot be a name someone already has here.

No account needed to answer. Sign in instead and it carries your name and earns reputation.