금요일, 1월 17, 2025
HomeLinuxlinux ps 명령어

linux ps 명령어

개요

활성 프로세스 선택에 대한 정보를 표시합니다.

명령어

/bin/ps

실행예시

예시

표준 구문을 사용하여 시스템의 모든 프로세스를 보려면 :
ps -e
ps -ef
ps -eF
ps -ely

BSD 구문을 사용하여 시스템의 모든 프로세스를 보려면 :
ps ax
ps axu

프로세스 트리를 인쇄하려면
ps -ejH
ps axjf

스레드에 대한 정보를 얻으려면
ps -eLf
ps axms

보안 정보를 얻으려면 :
ps -eo euser,ruser,suser,fuser,f,comm,label
ps axZ
ps -eM

사용자 형식으로 루트 (실제 및 유효 ID)로 실행중인 모든 프로세스를 보려면 :
ps -U root -u root u

사용자 정의 형식의 모든 프로세스를 보려면
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
ps -Ao pid,tt,user,fname,tmout,f,wchan

syslogd의 프로세스 ID 만 인쇄하십시오.
ps -C syslogd -o pid=

PID 42의 이름 만 인쇄하십시오.
ps -q 42 -o comm=

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular