1

Linux常用命令-66:watch

 1 year ago
source link: https://xugaoxiang.com/2022/06/22/linux-cmds-66-watch/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

watch 命令以周期性的方式执行给定的指令,指令输出以全屏方式显示,可以帮你监测一个命令的运行结果,省得一遍遍的手动运行。按下ctrl+c 可以退出。

语法格式:watch [参数] [命令]

常用参数:

883f62d4e7d5ee25.png
# 重复执行ls命令
watch ls

# 每隔2秒运行一次nvidia-smi
watch -n 2 nvidia-smi

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK