The description for the wall
command states that it sends a message to all logged in users. However, the man page describes a flag, -g --group
, which allows the sender to limit messages to a specified group:
-g, --group group
Limit printing message to members of group defined as a group argument. The argument can be group name or GID.
However, I am only able to send messages to all logged in users. I have tried this command with:
-g my_group
,--group my_group
,-g "my_group"
,--group "my_group"
,--group=my_group
In addition, I have tried all of the above by replacing "my_group" (the group name) with the group ID to no avail.
I have also tried placing the flags after the message. None of this works to limit the messages to a given group. All messages go to all users. Am I misunderstanding the flag? The syntax? Is this command broken? Or is the man page simply incorrect? Please do not offer alternative commands, I am aware of their existence. I want to know how to use a listed option or why the option is not working correctly. I am using Ubuntu 20.04