Linux watch 명령어
DB CAFE
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
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'