Name

watch [man page] - execute a program periodically, showing output fullscreen

Synopsis

watch [-dhvt] [-n seconds] [--differences[=cumulative]]
      [--help] [--interval=seconds] [--no-title]
      [--version] command 

Frequently used options

-n seconds interval in seconds 

Examples

Watch is utility which helps you to WATCH for changes. For example if we want to watch content of directory for new files we can do:

$ watch ls ~/ 

By default watch update screen every 2 seconds. To change this interval we can use -n option. If we want to watch to refresh screen every 0.5 second we do:

watch -n 0.5 ls ~/ 

watch for directory or file change

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: