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

Linux watch 명령어

데브카페

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