Ps Linux

STAT 의 종류와 의미

부호 의 미 R 수행 가능/수행중 T 일시 정지 P 페이지인을 기다림 D 디스크 입출력 대기 같은 인터럽트 할 수 없는 대기중 S 20초 미만의 짧게 잠듦 I 20초 이상의 길게 잠듦 Z 좀비 프로세스

For BSD formats and when the stat keyword is used, additional characters may be displayed: < high-priority (not nice to other users) N low-priority (nice to other users) L has pages locked into memory (for real-time and custom IO) s is a session leader l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do) + is in the foreground process group

AIX FORMAT DESCRIPTORS

This ps supports AIX format descriptors, which work somewhat like the formatting codes of printf(1) and printf(3). For example, the normal default output can be produced with this: ps -eo "%p %y %x %c". The NORMAL codes are described in the next section.

     CODE   NORMAL   HEADER
     %C     pcpu     %CPU
     %G     group    GROUP
     %P     ppid     PPID
     %U     user     USER
     %a     args     COMMAND
     %c     comm     COMMAND
     %g     rgroup   RGROUP
     %n     nice     NI
     %p     pid      PID
     %r     pgid     PGID
     %t     etime    ELAPSED
     %u     ruser    RUSER
     %x     time     TIME
     %y     tty      TTY
     %z     vsz      VSZ