In ubuntu, How to dedirect stdout and stderr to separate screens with dual monitors?
With terminals in desktop Ubuntu
Open a terminal and move it to the second monitor.
ttyin that terminal, and you will get a response of the form
/dev/pts/N, where N is a number (1, 2, ....)
Open another terminal on the first monitor. This is where you will run your commands
stderrto the other terminal:
ls /askubuntu 2>dev/pts/Nand you should see
ls: cannot access /askubuntu: No such file or directoryon the second terminal.
Replace 2 with 1 to redirect
This should work similarly for virtual consoles on a command-line system, with
/dev/pts/N replaced by
/dev/ttyNbut I haven't tested it. Pseudo-TTYs (e.g. ssh sessions) still use the