linux:shell_commands:send_messages_to_users

Differences

This shows you the differences between two versions of the page.


linux:shell_commands:send_messages_to_users [2019/10/31 09:05] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Send messages to other users ======
 +<code bash>
 +# Findout who is logged on
 +$ who
 +su       pts/       2019-05-14 08:15 (172.16.11.44)
 +jack     pts/       2019-05-14 09:47 (172.16.11.44)
  
 +
 +# Broadcast a message
 +$ wall "System will go down in a minute!"
 +
 +Broadcast message from su@hweb (pts/0) (Tue May 14 09:48:18 2019):
 +
 +System will go down in a minute!
 +
 +
 +# Broadcast a message, but do not display the banner (available only to root)
 +wall -n "System will go down in a minute!" 
 +
 +System will go down in a minute!
 +
 +
 +# Send message to a specific user
 +$ write jack pts/1
 +</code>
  • linux/shell_commands/send_messages_to_users.txt
  • Last modified: 2019/10/31 09:05
  • by 127.0.0.1