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 | ||
+ | jack | ||
+ | |||
+ | # Broadcast a message | ||
+ | $ wall " | ||
+ | |||
+ | 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! | ||
+ | |||
+ | |||
+ | # Send message to a specific user | ||
+ | $ write jack pts/1 | ||
+ | </ |