Home Watch command in MacOS terminal
Post
Cancel

Watch command in MacOS terminal

You want to follow command result continuously. Use watch

1. Install

1
brew install watch

2. Usage

1
watch -n <number_of_seconds> <command>

For example

1
watch -n 5 kubectl get all -o wide

The result of “kubectl get all -o wide” command will be reload every 5 seconds

watch

This post is licensed under CC BY 4.0 by the author.