행위

Linux watch 명령어

DB CAFE

Dbcafe (토론 | 기여)님의 2024년 8월 14일 (수) 16:29 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
thumb_up 추천메뉴 바로가기


watch 명령어[편집]

옵션 상세 설명
-n --interval <초> ~초 동안 기다리고 갱신
-e --errexit exit if command has a non-zero exit
-g --chgexit 명령어 수행중 출력화면이 변경되면 종료
-p --precise attempt run command in precise intervals
-t --no-title 헤더 끄기
-x --execute "sh -c" 대체하여 명령어를 실행


  • 1초 마다 명령어 반복 수행
watch -n 1 'pstree'