Several commands to monitor Linux

Tram Ho


Hello, in this article I will outline some of the commands that are commonly used to monitor and debug when working with linux, hopefully it will be useful for you.

Top – Linux Process Monitoring

Top used for Linux perform monitor. This command is also used to display all running and active real-time processes in an ordered list and update it regularly. It displays CPU usage , Memory usage , Swap Memory , Cache Size , Buffer Size , Process PID , User , Commands and more … The top command is useful for monitoring the system.

You can learn more about this command here .

VmStat – Virtual Memory Statistics

The Linux VmStat command is used to display statistics about virtual memory , kernerl threads , disks , system processes , I/O blocks , interrupts , CPU activity and more. By default, the vmstat command is not available on Linux systems, you need to install a package called sysstat that includes vmstat .

You can learn more about this command here .

Lsof – List Open Files

The Lsof command is used to display a list of all open files and processes. Open disk files include disk files , network sockets , pipes , devices and processes . With this command, you can easily determine which file is being used. The most common format for this command is.

You can learn more about this command here .

Tcpdump – Network Packet Analyzer

Tcpdump is one of the commands for network packet analyzer or packets sniffer used to capture or filter TCP / IP packets received or transferred over a specific interface over a network. It also provides an option to save captured packages to a file for later analysis.

You can learn more about this command here .

Netstat – Network Statistics

Netstat used to keep track of the network’s received and transmitted packet statistics and statistics. It is a very useful tool for every system administrator to monitor network performance and troubleshoot network related problems.

You can learn more about this commandhere .

Htop – Linux Process Monitoring

Htop for real-time monitoring of Linux and much more advanced interaction. This is almost identical to the top command but it has some rich features like a user-friendly interface for managing processes, shortcuts, vertical and horizontal views of processes, and more. Htop is a third-party tool and is not included in a Linux system, you need to install it using the YUM package manager tool.

You can learn more about this command here .

Iotop – Monitor Linux Disk I / O

Iotop is similar to the top and Htop commands, but it has accounting features that track and display real-time Disk I / O and processes . This tool is very useful for finding processes and reading / writing processes on disk.

You can learn more about this commandhere .

Iostat – Input / Output Statistics

IoStat is a tool that collects and displays input and output storage device statistics of the system. This tool is commonly used to track performance issues of your storage device including devices, local disks, remote disks such as NFS.

You can learn more about this command here .

Monit – Linux Process and Services Monitoring

Monit is a free and open source utility that monitors and manages system processes, programs, files, directories, permissions, checksums and filesystems.

It monitors services like Apache, MySQL, Mail, FTP, ProFTP, Nginx, SSH, etc. The system state can be viewed from the command line or using the web interface itself.

You can learn more here .


Above are some commands and tools when working with linux, if you find it useful, do not regret 1 upvote and share.

Happy coding !!!

Reference source:

Share the news now

Source : Viblo