Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux watch command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In the course of actual operation, we often encounter repeated execution of the same command to observe the change of the result. In the past, it was often the way of the arrow and arrow keys plus enter, or Ctr+p and then enter.

Watch-execute a program periodically, showing output fullscreen

SYNOPSIS

Watch [- dhvt] [- n] [--differences [= cumulative]] [--help]

[--interval=] [--no-title] [--version]

Watch repeatedly executes a command to display the result on full screen. This allows you to monitor program output over time, with a default interval of two seconds, using parameters

-n or-interval can specify the time interval.

-d highlight the place where the transition was successful

-t does not display the title title

The commands used in comparison are as follows:

Watch-n 3-d free / / monitors memory usage

Watch-n 1 "df-I" DF "/ / Monitoring the number of disks inode and block

Watch-n 60 from / / Monitoring mail

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report