Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 673 Bytes

Using-watch-command-to-tracking-changes-in-period-time.md

File metadata and controls

26 lines (17 loc) · 673 Bytes
  • Date : 2017-10-20
  • Tags : #linux #watch #tool

Using watch command to tracking changes in period time

watch to a good command to run a command every N seconds.

And like its name, means you can watch something, its output changes with flag -d

It's a great tool to help you learn a new language without hitting compile and run everytime you save a file.

$ watch -n 1 -d go run learn.go

This command will compile and run learn.go every 1 second

More flags :

  • -t : no title
  • -b : beep on non-zero exit code
  • -e : stop loop on error and exit on a keypress
  • -g : exit on change
  • -c : support colors
  • -h : you know ! ;)