Suppose there are two terminals, pts/0
and pts/1
.
In pts/0
, I have fired a command:
ls>/dev/pts/1
Then, we only get the output of the ls
command in pts/1
, but I want to run a command as well as its output both on pts/1
.
I tried "echo ls">/dev/pts/1
, but instead the output of the ls
command, "ls", is printed on pts/1
.
How can I do it?
ls>/dev/pts/1 </dev/pts/1 2>/dev/pts/1
? – user253751 Feb 07 '16 at 11:52