Remote shell assistance

Source: Internet
Author: User
Source: DingTalk & nbsp; the screen command can also be used to share the screen. two users use a shell terminal to debug the server together. & nbsp; 1. check whether the system has installed the tcl and CT software packages [root @ AS47 ~] # Rpm-qa | greptcltclx-8.3.5-4tcl-8.4.7-4.el4 & nb

Source: DingTalk
 
The screen command can also share the screen.
Two users use a shell terminal to debug the server together.
 
1. check whether the system has the tcl and keep Ct software packages installed.
[Root @ AS47 ~] # Rpm-qa | grep tcl
Tclx-8.3.5-4
Tcl-8.4.7-4.el4
 
[Root @ AS47 ~] # Rpm-qa | grep CT
CT-5.42.1-1
Pexpect-2.3-1.el4
 

II. check whether kibitz commands exist
[Root @ AS47 ~] # Whereis kibitz
Kibitz:/usr/bin/kibitz/usr/share/man/man1/kibitz.1.gz
 
3. view the two users currently logged on
[Root @ AS47 ~] # W
10:25:31 up 7 min, 2 users, load average: 0.01, 0.16, 0.12
User tty from login @ IDLE JCPU PCPU WHAT
Root pts/0 192.168.0.168 0.00 s 0.25 s 0.01 s w
Root pts/1 192.168.0.168 0.12 s 0.12 s-bash
We can see two root users logging on. The terminal is pts/0, and the other side is pts/1.
4. at this time, the initiator runs (pts/0 initiates a request to pts/1)
[Root @ AS47 ~] # Kibitz-tty pts/1 root
Asking root to type: kibitz-5878 # This is the ID number automatically generated by the system
 
The following message is displayed on the terminal of the invited party:
[Root @ AS47 ~] #
Message from root @ AS47. pts/0...
Can we talk? Run: kibitz-5878
EOF
In this case, the invitee copies kibitz-5878 after EOF, as shown below:
[Root @ AS47 ~] #
Message from root @ AS47. pts/0...
Can we talk? Run: kibitz-5878
EOF
Kiblitz-5878
Escape sequence is ^]
[Root @ AS47 ~] #
5. at this time, the process of sharing the same login shell is completed. try to enter a command in one terminal, and you can see that the same output is displayed on another terminal, which is real-time, great!
This article from: cool kids blog http://www.cnredhat.com /? Action = show & id = 220

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.