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 realize screen collaboration in linux

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

Share

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

Editor to share with you how linux to achieve screen collaboration, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Screen collaboration

David, a senior maintenance user from product engineering, called and said, "Why can't I compile supercode.c on these new machines you deploy?"

You will ask him, "what kind of machine are you running?"

David replied, "Posh". The fictional company named its five production servers in honor of Spice Girls. Now you can show your skills. The other machine is operated by David:

# su-david

Go to posh:

# ssh posh

When you arrive, run the following code:

# screen-S foo

Then call David: "David, run the command # screen-x foo" on the terminal.

At this point, your conversation with David is connected in Linux shell. You can type, or he can type, but each can see what the other is doing. This avoids moving to other levels, and both sides have the same control. The advantage of this is that David can observe your troubleshooting skills and know exactly how to solve the problem.

Finally, everyone can see the problem: David's compilation script hard-codes an old directory that is not on this new server. Load it and compile it again to solve the problem, and then David continues to work. You can continue your previous entertainment.

One thing to note about this technique is that both parties need to log in as the same user. The screen command can also implement multiple windows and split screens. Please read the manual page for more information.

I have one last trick for screen conversation. To detach from it and have it open, enter

Ctrl-A D

(that is, hold down the Ctrl key and click the A key. Then press D). You can then reassemble it by running the screen-x foo command again.

The above is all the content of the article "how to achieve screen collaboration 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