I need to write commands from one terminal to another terminal.
I tried these:
echo -e \"ls\\n\" > /proc/pid/fd/0 echo -e \"ls\\n\" > /dev/pts/
open 2 terminals then type ttd on the terminal which you want to write on ttd will show you the address of the terminal move to the another terminal and type cat > (address of the 2nd terminal) and hit enter