다른 명령
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'