LINUX difference between process and ps -aux ps -ef format and Detailed

Under Linux display system processes the command ps, the most commonly used and ps -ef ps aux. Both in the end what difference does it make? Not much difference between the two, discuss this issue dates back two styles Unix systems, System V and BSD-style style, ps aux originally used in Unix Style, and ps -ef be used in the System V Style, both output is slightly different. Most Linux systems are now can use both of these two approaches.

ps -ef process is a standard format, which format

Where the contents of each column mean as follows
UID // user ID, but the output is the user name 
ID PID // process 
PPID // parent process ID 
C // process CPU percentage 
STIME // now time to start the process 
TTY / / the processes run on the terminal, if nothing to do with the terminal, the display? If it is pts / 0, etc., is represented by a network connection to the host process. 
Name and command parameter CMD //

ps aux BSD format is displayed in the following format

Ps -ef there with different lists
USER // username 
% CPU // process consumes percentage of CPU 
% MEM // memory-intensive percentage 
VSZ // amount of virtual memory used by the process (KB) 
RSS // The process uses a fixed amount of memory (KB) (in number of resident pages) 
state STAT // process 
sTART // the process is triggered start time 
tIME // CPU running time of the actual use of the process

STAT status bits which characters have a common state
D // not interrupt sleep (usually IO process); 
R // is running in the queue may be over the line; 
S // in a dormant state; 
T // stop or track; 
W // enter the memory exchange (invalid from the beginning of a kernel 2.6); 
the X-// dead process (basic rare); 
the Z-// zombie process; 
<// high priority process 
N // priority lower-level process 
L // some pages are locked into memory; 
S // course leader (there are child processes under it); 
L // multi-threading, cloning thread (use CLONE_THREAD, similar pthreads NPTL); 
+ // in the background process group;

Guess you like

Origin www.cnblogs.com/Diyo/p/11411038.html