Linux Process management Tools Htop Installation Tutorial

Source: Internet
Author: User

Htop is an interactive process browser under Linux that can be used to replace the top command under Linux.
Htop Official website: http://hisham.hm/htop/

System environment: CentOS release 5.8 (Final)

Installation Htop requires ncurses support, make sure that you have installed:

[Root@localhost ~]# yum install ncurses ncurses-devel

Install Htop

# wget http://hisham.hm/htop/releases/1.0/htop-1.0.tar.gz
# TAR-ZXVF Htop-1.0.tar.gz
# CD htop-1.0
#./configure
# Make && make install
# Htop

Using tutorials

Show Self Help
Mouse click Help or press F1 to display its own assistance
4.2. Htop Set
The mouse clicks on the setup or presses the F2 to enter Htop to set the page, Meters page set the top of some information display, the top of the display is divided into the left and right sides, in the end can show what can be added to the rightmost column, to add to the top left (F5) or right (F6) can be, This is the scope of the individual set. There's an extra clock here.
The top left and right two columns of the display mode is divided into text bar graph Led Four kinds, the following figure I will be the CPU memory swap to text mode display, and then the right-hand column of the change to bar display, clock with Led mode display. The data show all the same, but this is a bit out of the habit.
The setting of display options can be set according to the manager's own needs.
Color selection, in addition to the basic color display, Htop also provides the function of changing the panel, in fact, only to change the settings of some color display, although it can not be customized to the details of the color display, but at least provide several styles to choose from.
The final setting is to adjust the display of Columns, that is, in general htop instructions come in hope to see what kind of data and information, the adjustment of the field can be personalized in this setting, the general use of the system default value is good.
4.3. Search process
Mouse click Search or press F3 or enter "/", enter the process name for search, such as search SSH
4.4. Filter
Press F4 to enter the filter, which is equivalent to keyword search, case-insensitive, such as filter dev
4.5. Show tree structure
Enter "T" or press F5, show tree structure, meaning like Pstree, can see the structure of all program tree execution, this is quite convenient for system management, how to clarify the procedure is how to produce, of course, the browsing of the tree-like structure can also be sorted according to other data.
4.6. Select the Sort method
Press F6 can choose according to what to order, the most often sorted content is CPU and memory bar!
4.7 Operational processes
F7, F8 respectively corresponding to the nice-and nice+,f9 corresponding kill to the process signal, select a good signal return to OK
4.8. Display a user's process, select the user on the left
Enter "U" and select User on the left
Five, Alias top
Maybe you used top, we can also use top to open htop.
Edit the/ROOT/.BASHRC file and add the following code
if [-f/usr/local/bin/htop]; Then
    alias top= '/usr/local/bin/htop '
fi
# SOURCE/ROOT/.BASHRC
Related Article

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.