성장일기/리눅스

현재 실행중인 프로세스 목록 보기 [ ps -aux | grep 프로세스이름]

지추월자 2023. 2. 19. 21:44
반응형

root@baston:/home/ubuntu# ps --help all

Usage:
 ps [options]

Basic options:
 -A, -e               all processes
 -a                   all with tty, except session leaders
  a                   all with tty, including other users
 -d                   all except session leaders
 -N, --deselect       negate selection
  r                   only running processes
  T                   all processes on this terminal
  x                   processes without controlling ttys

Output formats:
 -F                   extra full
 -f                   full-format, including command lines
  f, --forest         ascii art process tree
 -H                   show process hierarchy
 -j                   jobs format
  j                   BSD job control format
 -l                   long format
  l                   BSD long format
 -M, Z                add security data (for SELinux)
 -O <format>          preloaded with default columns
  O <format>          as -O, with BSD personality
 -o, o, --format <format>
                      user-defined format
  s                   signal format
  u                   user-oriented format
  v                   virtual memory format
  X                   register format
 -y                   do not show flags, show rss vs. addr (used with -l)
     --context        display security context (for SELinux)
     --headers        repeat header lines, one per page
     --no-headers     do not print header at all
     --cols, --columns, --width <num>
                      set screen width
     --rows, --lines <num>
                      set screen height

 

현재 실행되고있는 프로세스를 확인할떄 사용하는 리눅스로 ps --help all을 사용하면 사용법이 나온다.

위의 help 에서 나오는대로 사용하면되는데 일반적으로 

ps -aux 

ps - ef | grep 

 이런식으로 사용합니다.

 

반응형