zoukankan      html  css  js  c++  java
  • Linux基础命令---间歇执行命令---watch

    【watch】

    watch指令可以间歇性的执行程序,将输出结果以全屏的方式显示,默认是2s执行一次。

    watch指令下发后,将会一直被执行,直到被中断。

       

    【语法】

    watch

    [-d h v t]

    [-n <seconds>]

    [--differences[=cumulative]]

    [--help]

    [--interval=<seconds>]

    [--no-title]

    [--version]

    <command>

       

    【参数详解】

    参数

    详解

    -d | --differences

    高亮显示差异部分
    --cumulative(高亮显示"sticky")

    -n

    指定时间间隔

    -t | --no-title

    不显示日期时间以及间隔秒数

       

    【命令行举例】

    查看目录变化

    watch -d ls l
    watch -d
    'ls l'

    每隔三秒执行一次

    watch n 3 ls l

     

  • 相关阅读:
    Python Day13:开放封闭原则、函数装饰器、全局局部变量
    Python Day12
    Python Day11
    Python Day10
    drf框架
    drf框架
    drf框架
    drf框架
    vue框架
    vue框架
  • 原文地址:https://www.cnblogs.com/liufarui/p/11585474.html
Copyright © 2011-2022 走看看