In Linux, how does one broadcast messages to all other users logging on to the same machine?

Source: Internet
Author: User
In Linux, how to broadcast messages to all other users logging on to the same machine-Linux Enterprise Application-Linux server application information is described below. Many people share some machines in the local area network. However, if multiple people use the same machine at the same time, some conflicts may occur, such as some system configurations being modified, this causes some trouble. Before using this machine, send a message to all other users who have logged on to the machine, telling other users (if any) that you will use this machine. In this way, if other users log on to the machine, they will receive the message. This effectively avoids conflicts.

First, you can run the who command to view all users logging on to the machine. For example:

# Who

Root pts/0 Jun 13 (10.56.226.25)
Root pts/1 Jun 13 22:32 (10.140.1.37)
Root pts/2 Jun 13 23: 31 (10.140.2.70)
Root pts/3 Jun 13 23: 56 (10.140.2.70)

If you run the who command, the above result is returned. Indicates that three users have logged on to the machine and two users have logged on to the Console.

Second, broadcast messages

# Wall 'I will use this host. If somebody is using it, pls let me know. Thanks a lot .'

Broadcast message from root (pts/3) (Fri Jun 13 23:57:13 2008 ):

I will use this host. If somebody is using it, pls let me know. Thanks a lot.

Run the wall command to receive the message shown above on all the console interfaces that log on to the machine.
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.