Linux

watch

SafeRepeat a command on screen

watch -n 2 '<command>'

Re-runs a command periodically; -d highlights changes. Perfect for watching recovery progress.

Examples

  • watch -d -n 2 'df -h /'Watch disk usage change

Syntax

watch [-n sec] [-d] <command>

Before you run it

As safe as the watched command.

Related commands

  • tailFollow file tail
  • dfDisk free space

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store