
我在這裡收到了一些消息:
[root@localhost kvm]#
Broadcast message from [email protected] (pts/1) (Thu Jun 6 08:04:26 2019):
hello
Broadcast message from [email protected] (pts/1) (Thu Jun 6 08:05:02 2019):
hello
這則訊息是如何發送給我的?我該如何回覆呢?
答案1
除了擔心您託管的主機可能受到威脅之外,要將訊息廣播給所有用戶或特定群組中的用戶,請使用wall
wall -g root "Hi there"
# Will send to all users in the root group
wall "hello, world"
# Will send to all logged in users
還結帳mesg
和talk
。