7 command-line tools for monitoring Linux systems

Source: Internet
Author: User

7 command-line tools for monitoring Linux systems: "

Depth

One of the best things about Linux is that you can drill into the operating system to explore how it works and look for opportunities to fine tune performance or diagnose problems. Here are some basic command-line tools that allow you to explore and manipulate Linux more easily. Most of these commands are already built into your Linux system, but if they are not, use Google to search for the command name and your distribution name, and you will find which packages need to be installed (note that some commands are bundled with other commands to make a package, and the package you are looking for may be written in a different name). If you know some of the other tools you use, you are welcome to comment.

How do we get started


Note: This article is taken from a Debian Linux 8.1 (' Jessie '), which runs in a virtual machine in Oracle VirtualBox 4.3.28 under OS X 10.10.3 (' Yosemite ') operating system. To build your Debian virtual machine, take a look at my tutorial-' How to install Debian under a VirtualBox VM '.

Top


As one of the more easy-to-use Linux system monitoring tools, the top command takes us to a glance at almost every part of Linux. The following chart is its default interface, but press the ' Z ' key to toggle the different display colors. Other hotkeys and commands have other functions, such as displaying summary information and memory information (second on line fourth), sorting according to different conditions, terminating process tasks, etc. (you can find the complete list here).

Htop


Compared to top, its alternative htop is more refined. Wikipedia describes this: ' users often deploy htop so that UNIX top does not provide enough information about the system process, such as when you are trying to discover a small memory leak in the application, Htop generally can be used as a system listener. Compared to top, it provides a more convenient cursor control interface to send signals to the process. ' (Want to know more details poke here)

Vmstat


Vmstat is a simple tool for monitoring the performance data of Linux systems, which makes it more suitable for use in shell scripts. Use your regular expression trick to do some exciting things with vmstat and cron jobs. The following report gives the average value after the last system restart, and the other report gives information from the previous reporting interval. Other process and memory reports are that transient situation ' (poke here for more information).

Ps


The PS command shows a list of processes that are running. In this case, we use the '-e ' option to show each process, that is, all the running processes (I have scrolled the list to the front, otherwise the column name will not be visible). This command has many options to allow you to format the output on demand. Just use a little bit of the regular expression technique above and you'll get a powerful tool. Poke here for more information.

Pstree


Pstree ' Displays the running process in a tree view. This process tree is based on some PID, and if the PID is omitted, the tree is the root node of init. If you specify a user name, all process trees are displayed for the parent process in the process that the user belongs to. ' Using a tree chart to help you categorize the relationships between processes is really a very effective tool (poke here).

Pmap


During debugging, it is important to understand how an application uses memory, and the PMAP is to display relevant information when a process ID is given. The above shows some of the output produced using the '-X ' option, and you can use the Pmap '-X ' option to get more details, but only if you have a wider terminal window.

Iostat


One of the most important performance metrics for Linux systems is processor and storage usage, which is also what the Iostat command reports. Like the PS command, Iostat has a number of options that allow you to select the output format you want, and you can repeat the sample several times within a certain time frame.

Related articles
        <li >
28 Unix/linux Command-line artifact
        <li >
The command line is your best friend.
        <li >
18 command-line tools to monitor Linux performance
        <li >
8 Practical examples of Linux netcat commands
        <li >
12 best Linux command-line terminal tools
        <li >
6 useful command-line tools recommended to developers
        <li >
LINUX 101: Make your SHELL more powerful
        <li >
8 useful terminal tools for OS X platform
        <li >
Command line interface Design
        <li >
4 Linux Server monitoring tools

7 command-line tools for monitoring Linux systems, starting with the blog-bole online.

"

(Via.)

7 command-line tools for monitoring Linux systems

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.