Linux Top Command

Source: Internet
Author: User

Top command belongs to PROCPS, project address http://procps.sourceforge.net

From a tall man's blog to see, he summed up a bit to do a memo

Common Interactive Commands

Execute Top command

Z: Turn color display on/off
X: Highlight Row sequence

1: Show the running status of each CPU
<    : Changing the row sequence >    
W    : Put the current profile into the home directory. TOPRC in the configuration file F or O: Support for a stronger selection of the sequence of rows common command-line arguments
  -B: Batch operation mode, use this parameter to use the top command in the script
   -N: Use with-B to indicate a certain number of times after re-flushing exit-D   : Refresh delay time. For example,-D 5 means top refreshes every 5 seconds. (default is 3 seconds)


Monitor is processes with an effective UID or the user name matching that given. (Valid users only)

-u:monitor by user as:-U Somebody
Monitor only processes with a UID or the user name matching that given. This matches real, effective, saved, and filesystem UIDs. (Show actual or active users)

The simplest difference is to change the password with the normal user executing the passwd command.

Top–u username,

The passwd process is not visible because-u can only view valid users, the passwd process defaults to suid, and the active user is root

Top–u username,

You can see the passwd process, and the process shows the user as root instead of username

Linux Top Command

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.