CodingTrain / CodingTrain/Suggestion-Box

[Quantum Continuum]: Terminal command output to another terminal

Aperta
#653 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
570
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## [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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.