wall
作用:在当前主机,向所有用户发起广播,内容为wall 后面的内容
[root@localhost ~]# wall coooooooooooooooooooooooooool
Broadcast message from root@localhost.localdomain (pts/1) (Mon Aug 30 19:59:08
coooooooooooooooooooooooooool
at(单一次)
作用:创建执行一次的任务
[root@localhost ~]# at now + 1minute #now是从当前 然后到1分钟后执行,执行时间从按下这个命令时,就开始计算了
warning: commands will be executed using /bin/sh
at> wall coooooooooooooooooooooooooooooooooooooooooooooooooooooooooool
at> <EOT> #ctrl + D 退出
job 2 at Mon Aug 30 20:08:00 2021
Broadcast message from root@localhost.localdomain (somewhere) (Mon Aug 30 20:08
coooooooooooooooooooooooooooooooooooooooooooooooooooooooooool
atq
:查看当前有什么任务
atrm
:指定序号,删除任务
[root@localhost ~]# atq
[root@localhost ~]# at now + 3 minute
warning: commands w