Linux self-study journey-basic commands (wall~ send information command to all users)

Linux self-study journey-basic commands (wall command)


Preface

1. In the previous section, we talked about the write command to send information to the specified user. If you haven’t read it, you can click the link below to watch it: write

2. In this section we talk about another command wall to send information to the user


Tip: The following is the content of this article, the following cases are for reference

1. Wall command format

  • Command name: wall
  • Location: /usr/bin/wall
  • Execution authority: all users
  • Function description: send a message to everyone's terminal
命令格式
[root@web ~]# wall "要发送的信息"

Two, wall use

1. The difference between wall and write

The difference is quite big, write is to send information to a specified user; while wall is to send information to all logged-in users (including themselves).

2.wall example

1. As shown in the figure below, I now have two login users, so how can I use the wall to send information to all online users?
Insert picture description here

2. Directly follow the content of the message to be sent behind the wall. As shown in the figure below, I myself received the message I sent, then let's see if another user has received it.
Insert picture description here
3. As follows, another user of mine also received the message sent by my root. (Press Enter to return to the normal command line state)
Insert picture description here


to sum up

In this section, we have learned the basic use of wall. You can use wall and write according to actual needs.

Guess you like

Origin blog.csdn.net/qq313088385/article/details/115158276