watch

Execute a program periodically, showing output fullscreen.

Install

All systems
curl cmd.cat/watch.sh
Debian Debian
apt-get install procps
Ubuntu
apt-get install procps
Alpine
apk add procps
Arch Arch Linux
pacman -S procps-ng
image/svg+xml Kali Linux
apt-get install procps
CentOS
yum install procps-ng
Fedora
dnf install procps-ng
OS X
brew install watch
Raspbian
apt-get install procps
Docker
docker run cmd.cat/watch watch powered by Commando

Execute a program periodically, showing output fullscreen.

  • Repeatedly run a command and show the result:
    watch command
  • Re-run a command every 60 seconds:
    watch -n 60 command
  • Monitor the contents of a directory, highlighting differences as they appear:
    watch -d ls -l

© tl;dr; authors and contributors