관리 메뉴

Today is Present.

리눅스 명령어 반복 실행(watch or while) 본문

리눅스 학습

리눅스 명령어 반복 실행(watch or while)

MorningPhys 2025. 3. 11. 17:26

# 1초 단위 반복 주기적 실행

# watch -n 1 date

# watch -n 1 ls -al /var/log

 

# while true; do ls -al ; sleep 1; done;

728x90
반응형