CodingTrain / CodingTrain/Suggestion-Box

[Quantum Continuum]: Terminal command output to another terminal

Offen
#653 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
570
Forks
85
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.