현재 프로세스와 그의 조상프로세스를 강조하여 pstree 결과 출력하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,358 조회
- 0 추천
- 목록
본문
현재 프로세스와 그의 조상프로세스를 강조하여 pstree 결과 출력하기
pstree명령어에서 -h 옵션은 현재 프로세스와 그의 부모프로세스들을 강조하여 출력해 줍니다.
아래의 결과를 보시면 각 프로세스의 부모프로세스를 강조하여 표시하고 있습니다.
[root@su250 backup]# pstree -h init-+-NetworkManager |-acpid |-atd |-auditd-+-audispd---{audispd} | `-{auditd} |-avahi-daemon---avahi-daemon |-bluetoothd |-console-kit-dae---62*[{console-kit-dae}] |-crond |-cupsd |-dbus-daemon---{dbus-daemon} |-gpm |-hald---hald-runner-+-hald-addon-acpi | |-hald-addon-inpu | `-2*[hald-addon-stor] |-httpd---8*[httpd] |-kerneloops |-6*[mingetty] |-nm-system-setti |-pcscd---{pcscd} |-rpc.idmapd |-rpc.statd |-rpcbind |-rsyslogd---2*[{rsyslogd}] |-2*[sendmail] |-setroubleshootd---2*[{setroubleshootd}] |-sshd-+-sshd---bash | `-sshd---bash---pstree |-udevd |-vsftpd `-wpa_supplicant [root@su250 backup]# |
위의 결과를 보면 “sshd---sshd---bash---pstree”가 강조되어 있음을 확인할 수 있습니다.
즉, 현재 프로세스인 pstree와 그의 조상프로세스를 강조하여 표시하고 있는 것입니다.
관련자료
-
이전
-
다음