linux-Command-top

Source: Internet
Author: User
Tags cpu usage

Top real-time dynamic display system status. (CPU, memory, swap, Task)

1. Top summarizes CPU, memory, swap, task information, and list to display the CPU, memory, swap, task information of the process dimension

2. Top-h-P PID summarizes CPU, memory, swap, task information, and Starway weijing of list display lines

3. Options

-B: Operation in batch mode;

-C: Displays the complete ruling order;

-D: Screen refresh interval time;

-I: ignore the failure process;

-S: Secrecy mode;

-S: Cumulative mode;

-i< time;: Set interval time;

-u< user name;: Specify user name;

-p< process number;: Specify the process;

Number of-n<;: The number of times the loop is displayed.

4. Interactive commands
Some of the interactive commands that you can use during the top command execution. These commands are single-letter, and some of these commands may be masked if the-s option is used on the command line.

Q: Exit the program;

M: Sort According to the size of the resident memory;

P: Sort according to CPU usage percent size;

T: Sort by Time/cumulative time;

H: Display the help screen, give some brief summary of the command;

K: terminates a process;

I: Ignore idle and zombie process, this is a switch-type command;

R: Rearrange the priority level of a process;

S: Switch to cumulative mode;

S: Change the delay time between two refreshes (in units of s), and if there are decimals, convert to Ms. Enter 0 value, the system will be constantly refreshed, the default value is 5s;

F or F: Add or remove items from the current display, O or O: Change the order of the displayed items;

L: Toggle display average load and start time information;

M: Toggle display memory information;

T: Toggle display of process and CPU status information;

C: Toggle display command name and full command line;

W: Writes the current settings to the ~/.TOPRC file.

linux-Command-top

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.