Use the most powerful process monitor htop in Ubuntu

Source: Internet
Author: User

1. top is a common monitoring program in Linux. htop is equivalent to its enhanced version. Different parameters are displayed in color and mouse operations are supported.

I used to use top to view the system. Now I found a top Upgrade Program-htop. In addition to function enhancements, it supports mouse operations. Main differences between top and htop:

In 'htop' you can scroll the list vertically and horizontally to see all processes and complete command lines.
In 'top' you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident ).
'Htop' starts faster ('top' seems to collect data for a while before displaying anything ).
In 'htop' you don't need to type the process number to kill a process, in 'top' you do.
In 'htop' you don't need to type the process number or the priority value to renice a process, in 'top' you do.
'Htop' ororts mouse operation, 'top' doesn' t
'Top' is older, hence, more used and tested.

2. Install htop in Ubuntu

3. Use htop software (main menu)

F1 help information (mouse supported)

Remember the common shortcut keys, such as t s p m h k.

F2 some settings (this is relatively simple)

F3 can be searched to find out which process F5 is the above shortcut key t F6 is the basis for selecting process sorting (the default is CPU usage)

F7 F8 can directly modify the priority of the selected Process

F9 can kill the process directly.

PS 1: select the process and press the shortcut key s to install the strace process.

To sum up one sentence, this software is very easy for everyone to know that the decision is better than the top

Replace the top

Edit the/root/. bashrc file:

Add the following code:

If [-f/usr/local/bin/htop]; then
Alias top = '/usr/local/bin/htop'
Fi

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.