man.lsPlain-English help for Unix commands

watch Run a command repeatedly and show its output

Runs a command again and again, clearing the screen each time, so you can see how its output changes. You reach for it to follow a file size, a queue or a service status without retyping the command. Press Ctrl+C to stop it.

Synopsis

watch [-n SECONDS] [-d] COMMAND

Common options

Option or formWhat it does
-n SECONDSSeconds to wait between runs. The default on Linux is 2
-dHighlight what changed since the previous run
-tTurn off the header that shows the interval and the command
-bBeep if the command exits with a non-zero status
-eStop and wait for a key press if the command exits with an error
-gExit when the command's output changes

Examples

Check disk space every two seconds
watch df -h
Run every 10 seconds
watch -n 10 'ls -l /var/log'
Highlight changes in a log file's size
watch -d 'ls -l app.log'
Follow how many copies of a process are running
watch -n 1 'ps aux | grep -c [n]ginx'
Stand-in on macOS with a plain shell loop
while true; do clear; date; df -h; sleep 2; done

Notes

See also

Last reviewed 2026-10-07.