watch
Execute a program periodically, showing output fullscreen. More information: <https://manned.org/watch>.
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
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install procps
- 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. More information: <https://manned.org/watch>.
-
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
-
Repeatedly run a pipeline and show the result:
watch 'command_1 | command_2 | command_3'
© tl;dr; authors and contributors