Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the write command in Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use the write command in Linux". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to use the write command in Linux.

The Linux common command write command is used to send information to the specified logged-in user terminal.

Write sends information to the specified login user terminal

Add that you can pass information to another user who logs into the system through the write command. When the input is finished, type EOF to indicate that the information is over, and the write command will send the information to the other party. If the user who receives the message logs in to the local host more than once, you can specify the terminal number on which the message is received.

Syntax write (parameter) parameter user: specifies the login user who wants to receive information; login terminal: specifies the login terminal of the user who receives the information. When the instance sends information to Rollaend, there is only one connection to Rollaend:

The next step of write Rollaend is to type the message and finish with Ctrl+C:

The connections that send information to Rollaend and Rollaend are pts/2 and pts/3:

The next step of write Rollaend pts/2 is to type the message and finish with Ctrl+C:

If the other party sets mesg n, the information will not be transmitted to the other party at this time.

The above is all the contents of the article "how to use write commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report