rwall Command in Linux with Examples

«
»

This tutorial explains Linux “rwall” command, options and its usage with examples.

rwall – send a message to users logged on a host

Description :

The rwall command sends a message to the users logged into the specified host or to users on all hosts in the specified netgroup. The message to be sent can be typed in and terminated with EOF or it can be in a file.

Usage :

rwall -h host [file] rwall [-h host] -n netgroup [file]

advertisement
advertisement

Options :

-h
Sends the message to machines specified by the HostName parameter.
-n
Sends the message to specific network groups only. Network groups are defined in the netgroup file.

Examples :

1. To send a message to a host named abc, enter:

# rwall abc

Type in your message. When you are done, enter:

Ctrl D

2. To send a message to a host named abc and every host in the students netgroup, enter:

advertisement
# rwall  -n students  -h abc

Type in your message. When you are done, enter:

Ctrl D

Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.

advertisement
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses.