User communication in linux

Source: Internet
Author: User
Linux terminal user communication-Linux general technology-Linux technology and application information. The following is a detailed description. Inter-user communication commands
For chat tools such as QQ and MSN, you should not be familiar with it. Can you perform such chat operations on Unix systems? Of course, the answer is yes. Unix provides multiple ways for users to communicate with each other. It allows users to transmit information to a user or all users in the form of text, and the source of information can be text files or content directly input by the keyboard.

(1) Use write to send messages
You can use the write command to send a message to another user who has logged on to the same system. The message is automatically displayed on the terminal of the other user, the other party can also use the write command to reply to the message, so that the two parties can communicate with each other.

The format of the write command is as follows:
Write user-name

Here, user-name is the user name to communicate with. You can use the who command to view the user name logged in to the system. Enter the write command to enter the message sending status. Then you can enter a message on the keyboard and press enter to send the message to the recipient. To exit the message sending status, run the "Ctrl + d" command to exit the write command and return to the shell.

(2) Use talk for mutual conversation
The talk command allows both parties to implement real-time conversations like MSN and QQ. The command format is as follows:

Talk user-name

When a user sends a conversation request to another user, the conversation is established only when the other party accepts the conversation request, that is, the other party uses the talk command. At this time, both terminals will display "[connect established]", so that both parties can input text from the keyboard, and talk will display the input on the screen of the other party. If either party presses The dialog key exits.

(3) Use wall for broadcast message transmission
The wall command can be used to broadcast notification information to all users, and all users logging on to the system can receive the message. The wall command has the following formats:

Wall
Wall filename
Wall "send a message to all the people !"

(4) use mesg to allow or reject messages
When a user is fully engaged in a job, he or she may not want to be interrupted by the message sent by another user in the above way, you can use the mesg command to determine whether to allow receiving of information sent by other users.

The mesg command format is as follows:

Mesg? N
Or
Mesg-y

Where, y indicates that the receiving information is allowed, and n indicates that the receiving information is denied. If the mesg is not followed by a parameter, the current license status is reported.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.