linux watch 命令

功能
centos

能夠將命令的輸出結果輸出到標準輸出設備(顯示器),此命令通常多用於週期性執行相關命令bash


選項ide

  • -d, --differences      高亮顯示變化的區域spa

  • -n, --interval seconds   間隔時間3d

  • -t, --no-title        關閉watch命令在頂部的標題行blog


示例get

watch -n1 -d -t ifconfig eth0


建議it

通常不加 -t 選項io


wKiom1gkLDfBgbP6AAB32fB5i8I889.png-wh_50


補充class

centos 7 默認是沒有安裝mlocate的,因此沒法使用updatedblocate這兩個命令

yum install -y mlocate
相關文章
相關標籤/搜索