Random Bits

Technical Log from Didik Setiawan

Linux Broadcast Message

Sometimes, as linux user (especially as command line user), we need to send message to another user. The message will appear on user terminal. To do this, all we need is root access and simple one liner.

$ echo "Hello buddy!" | sudo wall -n

And if we want to use a file text as message source, we just need to omit the redirection pipe and point commands to file directly.

$ sudo wall -n message.txt