CodingTrain / CodingTrain/Suggestion-Box

[Quantum Continuum]: Terminal command output to another terminal

Open
#653 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

## [Quantum Continuum]: Terminal command output to another terminal

1. Open two terminals
2. Identify each terminal with command: **tty**
3. Suppose they identified with: /dev/pts/0 and /dev/pts/1
4. In pts/0 redirecting stdout to /dev/pts/1 with exec command: **exec 1>/dev/pts/1**
5. Now each command from pts/0 output go to /dev/pts/1
6. Redirecting back stdout with commad: **exec 1>/dev/pts/0**
7. Now stdout working as before.

### It's better to see once, than hear seven times - YouTuBee video

_Note: Clicking on image will open a video on YouToBee_

[![](https://img.youtube.com/vi/hqVQxehmfuo/maxresdefault.jpg)](https://www.youtube.com/watch?v=hqVQxehmfuo)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.