Output can be redirected to a text file with >
followed by the destination text file. How can we redirect the output to another terminal window or tab?
>
or 1>
redirects standard output, 2>
redirects error messages.
Output can be redirected to a text file with >
followed by the destination text file. How can we redirect the output to another terminal window or tab?
>
or 1>
redirects standard output, 2>
redirects error messages.
To redirect to a different terminal, determine the file descriptor of the terminal with the command tty:
Then redirect error messages to that terminal as in
See here to learn more about redirection of different outputs.