tldr/pages/linux/watch.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

312 B

watch

Execute a command repeatedly, and monitor the output in full-screen mode.

  • Monitor files in the current directory:

watch {{ls}}

  • Monitor disk space and highlight the changes:

watch -d {{df}}

  • Monitor "node" processes, refreshing every 3 seconds:

watch -n {{3}} "{{ps aux | grep node}}"