Network Testing and Monitoring Commands
Command |
Description |
Example |
---|---|---|
Assembles and analyzes TCP/IP packets, sends packets to a remote host, and examines the responses. |
hping3 -S -p 80 example.com Sends SYN packets to port 80 on example.com |
|
mtr |
Combines functionalities of traceroute and ping commands, continuously sends packets and shows the ping time for each hop. |
mtr google.com
Traces the route to google.com and shows ping times |
Allows reading and writing data across network connections. |
nc -l -p 8080 Listens on port 8080 for incoming connections |
|
smokeping |
Measures network latency and packet loss between two hosts, performs checks at set intervals. |
smokeping example.com Monitors latency and packet loss to example.com |
socat |
Facilitates data transfer between two bidirectional byte streams. |
socat TCP4-LISTEN:8080,fork EXEC:/bin/bash Opens a remote shell on port 8080 |
speedometer |
Displays bandwidth usage in real-time. |
speedometer eth0
Shows bandwidth usage on eth0 interface |
Measures network performance by conducting a speed test. |
speedtest-cli Runs a speed test to measure download/upload speeds |
|
ss |
Shows active network connections, socket statistics, and other network-related information. |
ss -tulpn Lists all listening TCP/UDP sockets with process information |
Traces the route packets take, discovering the MTU along the path. |
tracepath example.net Traces the path to example.net, showing MTU |
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