메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

Linux watch 명령어

데브카페
Devcafe (토론 | 기여)님의 2024년 10월 15일 (화) 01:38 판 (새 문서: === watch 명령어 === {| class="wikitable" |- ! 옵션 !! 상세 !! 설명 |- | -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 --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'

Comments