As a VPS or Dedicated Server account owner, you may want to check to see who is actively online and send a broadcast message to them. The short article below takes you through using the who
and wall
commands. Neither command requires root access.
How to see who is logged in
- Log into your account via SSH
- Run the
who
command from the command prompt. This will list anyone who is currently logged in.# who
You should receive some output similar to the sample below. As you can see, the users root and bradm are logged in.
root    pts/2       2013-01-25 12:53 bradm   pts/3       2013-01-25 12:58
How to send a message to online users
wall
command.# wall   This is a message   <ctrl-d>
Broadcast message from root (pts/2) (Fri Jan 25 12:52:25 2013): This is a message
The most informative post ever. love this post. see u again