Linux System Monitoring Command Cheat Sheet

In Linux, system monitoring commands are used to monitor and analyze system performance. Using these commands, you can find out details about your system's resources, such as CPU usage, memory usage, disk usage, network activity, and running processes. Administrators can identify system bottlenecks, troubleshoot problems, and optimize performance by using system monitoring commands.

Command Description
top Provides a real-time view of the system's performance, including CPU usage, memory usage, and running processes.
ps Displays a list of running processes and their status, including their process ID (PID), memory usage, and CPU usage.
htop Similar to top, but provides a more user-friendly interface with more options for sorting and filtering processes.
free Displays information about the system's memory usage, including total, used, and available memory.
vmstat Provides a detailed report on the system's virtual memory statistics, including CPU usage, paging, and disk I/O.
iostat Displays input/output statistics for disks and other storage devices, including throughput and disk utilization.
netstat Shows the status of network connections, including current TCP/IP connections and open ports.
iftop Monitors network traffic in real-time, showing the amount of data sent and received on each network interface.
sar Collects and reports system activity information, including CPU usage, memory usage, and I/O statistics, over a specified period of time.
dstat Provides real-time performance monitoring of the system's CPU, disk, network, and other resources.
mpstat Displays information about the system's CPU usage, including individual CPU statistics.
uptime Shows how long the system has been running, the number of users currently logged in, and the system load averages.
atop Displays system resource utilization by process, user, and CPU usage history.
nmon Displays system resource utilization in real-time with a graphical interface.
pidstat Displays statistics about the utilization of CPU, memory, and I/O by processes.
tcpdump Captures and analyzes network traffic.
strace Traces system calls and signals of a running process.
lsof Lists open files and the processes that have opened them.

About John Gomez

John Britto Founder & Cheif-Editor @LinuxTeck. A Computer Geek and Linux Intellectual having more than 10+ years of experience in Linux and Open Source technologies.

View all posts by John Gomez →

Leave a Reply

Your email address will not be published.

L