watch
Execute a program periodically, showing output fullscreen.
Install
- All systems
-
curl cmd.cat/watch.sh
- Debian
-
apt-get install procps
- Ubuntu
-
apt-get install procps
-
Alpine
-
apk add procps
- Arch Linux
-
pacman -S procps-ng
- 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
- Dockerfile
- dockerfile.run/watch
- 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