Linux under Ps-ef and PS aux difference and format detailed-turn

Source: Internet
Author: User

Original: https://www.linuxidc.com/Linux/2016-07/133515.htm

Linux Displays the system process command PS, the most commonly used are ps-ef and PS aux. What is the difference between the two? There is not much difference between the two, to discuss this issue, to go back to the UNIX system in the style, the System V style and BSD style, PS aux was originally used in the Unix style, and ps-ef is used in the System V style, the output is slightly different. Most Linux systems today can be used in both ways.

PS-EF Displays the process in a standard format, with the following format

The contents of each column are as follows
UID//user ID, but output is user name
PID//Process ID
PPID//Parent process ID
C//Percentage of CPU consumed by process
Stime//Process start to present time
TTY//The process runs on that terminal, if it is not related to the terminal, then display? For pts/0, this means that the host process is connected by the network.
CMD//Command name and parameters

PS aux is displayed in BSD format, and its format is as follows

Different from Ps-ef
user     /username  
%cpu     //process consumes CPU percent  
%MEM      //memory consumption percentage  
vsz     //The amount of virtual memory (KB) used by the process  
rss     // The amount of fixed memory (KB) that the process occupies (the number of pages residing in)  
stat     //process status  
start   //The process is triggered start time  
time     //How long the process actually uses the CPU to run

Where the stat status bit common state characters have
D//The dormant state (usually IO process) that cannot be interrupted;
R//Is running can be in the queue can be over line;
S//in hibernation;
T//stop or be traced;
W//Enter memory swap (invalid starting from kernel 2.6);
X//Dead process (basic rarely seen);
Z//Zombie process;
<//high-priority processes
N//low-priority processes
L//Some pages are locked into memory;
S//Leader of the process (under it there are sub-processes);
L//multi-threaded, clone thread (using Clone_thread, similar to NPTL pthreads);
+//Process group in the background;

Linux under Ps-ef and PS aux difference and format detailed-turn

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.