How to use the watch command, by The Linux Information Project (LINFO)
The watch Command watch is used to run any designated command at regular intervals. It displays its output on a console (i.e., all-text mode display) or terminal window (i.e., a window in a GUI that emulates a console) that is temporarily cleared of all other content (i.e., prompts , commands and results of commands). This makes it easy to observe the changing output of a command over time. The basic syntax of watch is watch [option(s)] command When used without any of its few options , watch executes the specified command every two seconds. The command can include any options and arguments (i.e., file names or other input data) that would normally be used with it. The top line in the output includes the frequency of the reports, the command inclusive of any options and arguments, and the current date and time. The time interval between reports can be changed from its default two seconds by using the -n option followed by an integer which represents the desired number of seconds.Read full article from How to use the watch command, by The Linux Information Project (LINFO)
No comments:
Post a Comment