Why does Linux's htop command win the top command?

Source: Internet
Author: User

Why does Linux's htop command win the top command?

In Linux, the top command is used to display the real-time status of processes running in the system. It displays some useful information, such as CPU utilization and memory consumption, and the status of each process. But, do you know? There is another command line tool 'htop', which is similar to the traditional top command, but it has more powerful functions and can display more information. In this article, we will use examples to discuss the 'htop' command.

Use the most powerful process monitor htop in Ubuntu

Install htop process management and monitoring tools in CentOS 6.5

Htop details: click here
Htop: click here

Htop commands in Linux

The following is a description extracted from the htop manual page:

It is similar to the top command, but it allows you to scroll vertically and horizontally, so you can see all the processes running on the system and their complete command lines.

You can perform related operations (killing and renicing) on the process without entering the PID of the process ).

First understand its output

The htop command displays information in an intuitive format. The output snapshot of HTOP is as follows:

If you observe the upper left corner of the window, you will see the real-time information of CPU load, memory consumption, and swap space, the upper-right corner contains information about tasks, threads, average loads, and system running time.

The average load Section provides three numbers, which only indicates the average load of the system in the past 5 minutes, 10 minutes, and 15 minutes. In a single-core system, the average load of 1 indicates a CPU usage. Finally, the running time (uptime) indicates the total time from system startup to the current running time.

Next, we will use examples to further discuss this command.

1. Use the F2 key to edit the configuration

The htop command provides many custom options. All you need to do is to press F2 from the main window.

The following are available custom options:

You only need to use the arrow keys to select and change specific settings.

2. send signals through the F9 key

The htop command allows you to easily send arbitrary signals to a process in the htop window. Press the F9 key.

As you can see, the left part of the window lists all available signals, and the right part lists processes. As long as you select a signal and select a process, and then press enter, the selected signal will be sent to this process.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.