Tags

, , , ,

I can think of three options two follow changes in a file (say, file.log) which is being updated by another program:

  1. Using tail: $ tail -f file.log
  2. Using less: $ less +F file.log
  3. Using watch: $ watch -d -n 10 "tail file.log"

(-d tells it to highlight changes and -n 10 to show changes at 10s interval)

In all the cases, you may exit from the ‘follow mode’ by pressing  <C-c>.

Advertisements