Skip to main content
1 of 2
Miguel
  • 274
  • 2
  • 7

you can write to the terminal's TTY; for example:

in terminal 1:

$ tty 
ttys000

in terminal 2:

$ tty
ttys029

$ exec &> >(tee >(cat >&/dev/ttys000))
ls 

Output will show in both terminals in real-time even as you type.

Miguel
  • 274
  • 2
  • 7