Send message communication between users on Linux

Source: Internet
Author: User
Tags scp command

Lenovo: SCP command

1. Use the Write command to send a message to the specified user:
Users can use the Write command to send messages to other online users. Format:

$write Zhangsan

Hello World//communication content

Press Ctrl+d to send the consumer interest to Zhangsan.
In the shell prompt symbol input write,username refers to the user name that accepts the sending information. If a user logs on to the system multiple times, the TTY parameter specifies the terminal to send. A precondition for sending information using write is that the user is already logged on to the system.

You can use the who command to query the login user name . You can then enter the information you want to send. When the input is complete, type EOF to indicate the end of the message, and use the Crtl+d key combination to send the message . The input appears on the user's screen while communication is aborted.
If you can use the Write command on a network to add a host name or domain name after username, establish network traffic. If you want to communicate with the Wanglun user on the 192.168.1.125 host, use the command:

write [email protected]

Hello World//communication content

Then press Ctrl+d to send the information to the Wanglun user on the host 192.168.1.125.

2. Use the wall command to send information to all users in the system:

If you want to send a message to all users in the system, you can use the Wall command,wall: Writeall. Enter wall, and then edit the information if shell support can be used in Chinese. Then use the Crtl+d key combination to send the message. This will cause the system to receive information for all logged-in users ' desktops.

If you are on a network, you can use the Rwall command to send information to all users on the LAN.

3. Use the talk command to implement a conversation with another user:
The talk command enables two-way conversations with another logged-on system user. The system administrator enters information, and users can enter their own information. Both sides can see the screen information when communicating. Format:
Talk username

HelloWorld//Communication content

4, using the MESG command, you can turn off and turn on other users to send their own information : (and write use)
Users can prevent other users from sending themselves messages to interrupt work,

Use the mesg n command to disable other users from sending messages. use MESG y order to allow other users to send themselves messages

Send message communication between users on Linux

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.