This tutorial explains Linux “rwall” command, options and its usage with examples.
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]
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:
# rwall -n students -h abc
Type in your message. When you are done, enter:
Ctrl D
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.
- Apply for Programming Internship
- Check Linux Books
- Check Information Technology Books
- Practice Programming MCQs