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
이런식으로 사용합니다.
'성장일기 > 리눅스' 카테고리의 다른 글
쥬피터랩(jupyterlab) 설치 방법 ( 클라우드 서버, 우분투, 비밀번호 설정, 자동재시작 ) (0) | 2024.03.21 |
---|---|
텍스트 파일의 줄(line), 단어(word), 문자(character) 수를 세는 명령어 : WC (0) | 2023.12.05 |
/etc/hosts 파일 호스트이름과 IP주소를 매핑해주는 파일 (0) | 2023.08.10 |