next up previous contents
Next: Recording a terminal session Up: Other useful commands Previous: Finding the date and   Contents

Watching a command

The command watch executes a program periodically, showing output fullscreen. By default, the program is run every 2 seconds; use -n or -interval to specify a different interval. For example, you can use watch to see how much memory is being used on your system every 5 seconds with the following command.

watch -n 5 free



Amit Jain 2009-08-23