Watch a command

Say you want to monitor a directory for file changes. You could use this command,

$ watch -d ls -l

With the -d switch, it will highlight the changes that were made. It basically runs ls -l every two seconds or whatever command by default.

http://www.foogazi.com/2008/03/18/linux-commands-you-probably-dont-use/ »

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.