Linux self-study journey-basic commands (write command)
Article Directory
Preface
1. In the previous section, we talked about the netstat network status view command. If you haven't read it, you can click the link below to watch it: netstat
2. In this section we describe a command write for sending information between users
Tip: The following is the content of this article
One, write command format
- Command name: write
- The full name of the command: send a message to another user
- Location: /usr/bin/write
- Execution authority: all users
- Function description: Send information with other users
命令格式
[root@dns ~]# write 用户名称
Two, write use
1. Let's briefly demonstrate this command, as long as write is followed by the user name to enter the message sending interface. (This look is not a card, but entered the input mode)
2. Then, for example, if we want to send "jh" to the user snljh, we can directly enter the keyboard, and then if we want to send at this time, it is not a carriage return. If it is a carriage return, it means In addition, creating a new line is equivalent to typing in a new line; here I don’t want to press Enter to change a new line to write something, because I only want to send the two characters "jh", and to send it is the Ctrl+D key.
3. After Ctrl+D is sent successfully, you can view the message we just sent directly in the character interface of the user snljh, and it will be directly displayed on your screen. Press Enter again to return to the command line mode normally. .
to sum up
In this section, we have learned the basic use of write, and we know that after the write is directly connected to the name of the user who wants to send information, we can send information to each other.