Linux Common monitoring commands

Source: Internet
Author: User

1 uptime

The uptime command can be used to see how long the server has been running and how many users are currently logged on.

2 Top

The top command is a common performance analysis tool under Linux that shows the resource usage of individual processes in the system in real time, similar to the Task Manager for Windows.

3 PS

The PS command is used to list those processes that are currently running on the system. The PS command lists the current snapshots of those processes, which are those that are executing the PS command at the moment, and if you want to display process information dynamically, you can use the top command.

4 Vmstat

Vmstat is a useful Linux system monitoring tool that uses the Vmstat command to get information about processes, memory, memory paging, blocking IO, traps, and CPU activity.

5 Iostat

Iostat is an abbreviation for I/O statistics (input/output statistics), and the Iostat tool monitors the system's disk operation activity

6 Mpstat

Mpstat is the abbreviation of multiprocessor statistics and is a real-time system monitoring tool. Reports some statistical information about the CPU, which is stored in the/proc/stat file.

7 Free

The free command displays the idle, used physical memory and swap memory in the Linux system, and the buffer used by the kernel.

8 Strace

Strace is commonly used to track system calls and received signals when a process executes.

9 tcpdump

Tcpdump, is: The dump the traffic on a network, according to the user's definition of the packet interception of packets of data packet analysis tool.

Ten netstat

The netstat command is used to print the status information of network systems in Linux, allowing you to learn about the network conditions of the entire Linux system.

Nicstat

Nicstat is a good tool for monitoring network cards and traffic

Pidstat

Pidstat is primarily used to monitor all or specified processes that consume system resources, such as CPU, memory, device IO, task switching, threading, etc.

Swapon

The Swapon command activates the swap space in the Linux system, and the memory management of the Linux system must use the swap area to establish virtual memory.

Lsof

Lsof (list open files) is a tool that lists open files for the current system.

Sar

The SAR command is a system health statistics tool under Linux that displays the specified operating system status counter to the standard output device. The SAR tool samples the current state of the system and then expresses the current operational state of the system by calculating the data and scale.

Linux Common monitoring commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.