$
학습 Linux 안내서
ko
XP:0
퀘스트 68DaemonWatcher
+190 XP

Persistent Processes & Live Monitoring (nohup & watch)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

Long-running tasks need two critical abilities: surviving unexpected network disconnects, and real-time execution monitoring without manual re-typing:

- nohup &: Runs a command immune to SIGHUP (hangup signals). If your SSH session drops or terminal closes, the program continues executing in the background, redirecting stdout/stderr into nohup.out.
- watch -n : Repeatedly executes a command at a set interval (default 2s), clearing the screen to display a live updating dashboard of system state.

Start the persistent background task nohup ./backup.sh &, then monitor storage disk changes live using watch -n 2 df -h.

명령어 구문 참조

Command / SyntaxDescription
nohup ./backup.sh &Run script immune to hangups in background
watch -n 2 df -hPeriodically execute df -h every 2 seconds

검증 목표

  • ○
    Run nohup ./backup.sh &
  • ○
    Run watch -n 2 df -h to monitor storage live

퀘스트를 완료할 준비가 되셨나요? 68?