OpenSource For You

Watch

-

The watch command can be used to repeat a command at fixed intervals. The default interval is 2 seconds or the users can set their own interval with the -n option. To run the free command every 5 seconds, use the following command:

The above command will overwrite the file trial.txt five times. The -u option can be used to remove a file after overwritin­g.

Newspapers in English

Newspapers from India