≡ Menu

Unix Watch Command

Question: Sometimes I want to repeat a command (or shell-script) frequently (every few seconds). Is there a better way to execute a unix command every n seconds (instead of keep typing the same command manually)? Answer: Using watch command you can execute a command and view it's output every few seconds. This is very helpful [...]

{ 12 comments }