Tuesday, December 18, 2007

Sending message to users

To send message to a particular user, you have to know what is the user tty. You can do this by typing:

# w


This command is used to show who is logged on and what they are doing. The output of the above command is usually like below(Click to see the image clearly):



To send message to a specific user:

$ write username tty

Example, to send message to user user1:

$ write user1 pts/3


Write you messages, and then press Ctrl-d to exit 'write'

To send message to all connected user, use wall command:

$ wall

Type your message and Ctrl-d to exit 'wall'

No comments: