익명 사용자
로그인하지 않음
토론
기여
계정 만들기
로그인
IT위키
검색
리눅스 ps
편집하기
IT위키
이름공간
문서
토론
더 보기
더 보기
문서 행위
읽기
편집
원본 편집
역사
경고:
로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다.
로그인
하거나
계정을 생성하면
편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.
스팸 방지 검사입니다. 이것을 입력하지
마세요
!
== 개요 == ;프로세스의 현재 상태를 출력한다. * 유닉스와 리눅스 모두에서 명령어와 옵션이 같음 * 경로 : /bin/ps == 사용법 == === 문법 === <pre> ps [옵션] </pre> === 옵션 === * 전체 프로세스와 관련된 옵션 * -A : 모든 프로세스를 출력한다. * -N : -A 옵션과 비슷하나 ps 프로세스를 제외하고 출력한다. * -a : 세션 리더 및 터미널에 속하지 않는 프로세스를 제외하고 출력한다. * -d : 세션 리더를 제외한 모든 프로세스를 출력한다. * -e : 커널 프로세스를 제외한 모든 프로세스를 출력한다. * '''전체 옵션''' <pre class='shell'> ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID -q by process ID (unsorted & quick) T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) r only running processes U processes for specified users x processes w/o controlling ttys t by tty *********** output format ********** *********** long options *********** -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context --quick-pid ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy </pre> == 예제 == * 어떤 프로세스가 실행되고 있는지 확인할 때 흔히 아래와 같이 쓰인다 <pre class='shell'> # ps -ef | grep [프로세스명] </pre> === 실행결과 예시 === <pre class='shell'> # ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Jan02 ? 00:00:07 /sbin/init root 2 0 0 Jan02 ? 00:00:00 [kthreadd] root 3 2 0 Jan02 ? 00:00:04 [migration/0] root 4 2 0 Jan02 ? 00:00:07 [ksoftirqd/0] root 5 2 0 Jan02 ? 00:00:00 [stopper/0] root 6 2 0 Jan02 ? 00:00:13 [watchdog/0] root 7 2 0 Jan02 ? 00:00:04 [migration/1] root 8 2 0 Jan02 ? 00:00:00 [stopper/1] root 9 2 0 Jan02 ? 00:00:07 [ksoftirqd/1] root 10 2 0 Jan02 ? 00:00:11 [watchdog/1] root 11 2 0 Jan02 ? 01:28:32 [events/0] root 12 2 0 Jan02 ? 01:07:32 [events/1] root 13 2 0 Jan02 ? 00:00:00 [events/0] root 14 2 0 Jan02 ? 00:00:00 [events/1] root 15 2 0 Jan02 ? 00:00:00 [events_long/0] root 16 2 0 Jan02 ? 00:00:00 [events_long/1] root 17 2 0 Jan02 ? 00:00:00 [events_power_ef] root 18 2 0 Jan02 ? 00:00:00 [events_power_ef] root 19 2 0 Jan02 ? 00:00:00 [cgroup] ... (이하 생략) ... </pre> == 참고 문헌 == * [https://book.naver.com/bookdb/book_detail.naver?bid=6413239 유닉스 리눅스 명령어 사전, 2010. 11. 30., 우종경, 박종오] [[분류:리눅스]] [[분류:리눅스 명령어]]
요약:
IT위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-비영리-동일조건변경허락 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는
IT위키:저작권
문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다.
저작권이 있는 내용을 허가 없이 저장하지 마세요!
취소
편집 도움말
(새 창에서 열림)
둘러보기
둘러보기
대문
최근 바뀜
분류별 보기
일반 IT용어
프로젝트 관리
디지털 서비스
블록체인
인공지능
소프트웨어 공학
운영체제
컴퓨터 구조
자료 구조
데이터 과학
데이터베이스
네트워크
프로토콜
보안
컴플라이언스
개인정보보호
표준
경영학
기업 IT
조직/단체
광고
위키 도구
위키 도구
특수 문서 목록
문서 도구
문서 도구
사용자 문서 도구
더 보기
여기를 가리키는 문서
가리키는 글의 최근 바뀜
문서 정보
문서 기록