Tuesday, May 10, 2016

Share the Terminal Output in Unix


if you want to share your terminal output and you do not have access to or do not want to use tools such as WebEx or Teamviewer  you can redirect your terminal output to another terminal.


whatever is written on the source terminal, after pressing enter it will appear in the destination terminal.

For the above to happen, get the number of terminal of the destination terminal, by typing: tty <enter>
The output should be something like: /dev/pts/7

Then on the source terminal type: script /dev/pts/7 <enter>

Now everything that is written on the source terminal will appear on the destination terminal, just note that only appear in the destination terminal after you press enter. Also the same Unix user needs to be used on both terminal.


No comments:

Post a Comment