14 尝试这个: write yang /dev/pts/6 #type your message #ctrl + D (EOF) 看到: man 1 write 要么 echo "message" > /dev/pts/6 — 约翰·卫斯理王子 source
-2 ~# tty /dev/pts/89 ~# echo hello to myself >/dev/pts/89 hello to myself 要么 ~# echo hello to myself >`tty` hello to myself 或写几行: ~# cat >>`tty` hello from another way of doing this ^D 其中^ D = CTRL + D。 — 0xdecaffedc0ffee source 2 -1,因为它们不会为现有答案添加任何内容 — HBruijn