watch -n 5 date 的作用是什么?
watch -n 5 date
安排 date 在每天 5:00 运行,并在退出登录后继续执行。
date
每隔 5 秒重新运行 date,并刷新显示的输出。
准确运行 date 5 次后退出。
等待 5 分钟后运行一次 date。