Network Analysis and Monitoring Commands
Command |
Description |
Example |
---|---|---|
Captures and inspects network traffic in real-time for analysis. |
tcpdump -i eth0 port 80
Captures traffic on eth0 interface for port 80 |
|
Discovers active hosts and services on a network, useful for security audits. |
nmap -sV example.com Scans example.com for open ports and services |
|
Displays real-time bandwidth consumption for individual network interfaces. |
bmon Shows bandwidth usage per interface |
|
bwm-ng |
Monitors the current bandwidth utilization across multiple network interfaces. |
bwm-ng Displays bandwidth usage for all interfaces |
Shows real-time bandwidth usage broken down by individual connections. |
lsof -i
Lists all open network connections |
|
Measures the network performance and throughput between two systems. |
iperf -c example.com Tests network performance to example.com |
|
Monitors and displays network traffic flows in real-time. |
iptraf-ng
Shows real-time network traffic statistics |
|
Tracks network traffic and bandwidth usage per process or application. |
nethogs Displays bandwidth usage per process/application |
|
Keeps historical records of network traffic statistics for selected interfaces, displaying hourly, daily, and monthly summaries. |
vnstat -i eth0
Shows traffic statistics for eth0 interface |
Linux Network Commands Cheat Sheet
Linux is a very popular operating system. Many people use it. Developers and network admins need to know Linux network commands well. This article will going explains most of the common Linux network commands in a very easy way and It also has a cheat sheet about these commands. The cheat sheet tells you what each command does and how you use it.
Linux Network Commands Cheat Sheet
- What Are Networking Commands in Linux?
- Linux Networking Commands Cheat Sheet
- Network Configuration Commands
- Network Connectivity Commands
- DNS and Name Resolution Commands
- Network Information Commands
- Network Testing and Monitoring Commands
- Network Analysis and Monitoring Commands
- Remote Access Commands
- Security Commands
- Utility Commands