Linux Command-ps: displays the snapshot of the current process

Source: Internet
Author: User

Linux Command-ps: displays the snapshot of the current process
Linux Command-ps: display the snapshot command format of the current process

Ps [options]

Instance

A) view all processes

bkjia@bkjia:~$ ps aux | headUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMANDroot         1  0.0  0.0   3664  1984 ?        Ss   Apr22   0:00 /sbin/initroot         2  0.0  0.0      0     0 ?        S    Apr22   0:00 [kthreadd]root         3  0.0  0.0      0     0 ?        S    Apr22   0:01 [ksoftirqd/0]root         4  0.0  0.0      0     0 ?        S    Apr22   0:38 [kworker/0:0]root         6  0.0  0.0      0     0 ?        S    Apr22   0:00 [migration/0]root         7  0.0  0.0      0     0 ?        S    Apr22   0:00 [watchdog/0]root         8  0.0  0.0      0     0 ?        S    Apr22   0:00 [migration/1]root        10  0.0  0.0      0     0 ?        S    Apr22   0:01 [ksoftirqd/1]root        11  0.0  0.0      0     0 ?        S    Apr22   0:00 [watchdog/1] 
Description

Column Title meaning:

Title Description
USER User ID, indicating the owner of the process
PID Process ID
% CPU CPU usage percentage
% MEM Memory usage percentage
VSZ Virtual Memory consumption size
RSS The actual memory used. Physical memory (RAM) used by the process (in KB)
TTY Indicates the control terminal of the process. The question mark indicates no terminal control.
STAT Indicates the current status of the process.
START The time when the process is enabled. If it is more than 24 hours, the date is used for display.
TIME Indicates the total CPU time consumed by the process.

Process status description:

Status Description
R Running status. The process is running or is ready to run.
S Sleep Status. The process is not running, but waiting for an event, such as inputting a keyboard or receiving a network packet.
D The process is waiting for I/O operations, such as hard drive.
T Paused. The process is instructed to be paused (you can continue running later)
Z Invalid or "zombie" process. Child process terminated, but not completely released by parent process
< High-priority process. Processes can be assigned more importance and more CPU time.
N Low-priority process.

This article permanently updates the link address:

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.