Cool way of sharing your Linux terminal session with named pipe/FIFO

Опубликовано: 19 Декабрь 2024
на канале: Bobby Iliev
3,990
43

Here's a cool trick that you could try, basically you could share your screen with one of your students or co-workers, just follow these steps here:

https://devdojo.com/bobbyiliev/cool-w...

1. You need 2 terminals open

2. In the first terminal run:

mkfifo file_name

3. Then run the following:

script -f file_name
4. Then from the second terminal run:

cat file_file

Once you have that ready, whatever you run on your main screen will be outputted on the second screen in real-time.