sap*_*nag 12 terminal tty write
我在 tty1 中有一个名为 x 的用户,在 tty2 中有一个名为 y 的用户。现在 x 想给 y 写一些消息,反之亦然。现在我在 tty1 终端输入write y tty2
它显示
写:写:你有写权限关闭
write:y 已禁用消息
当 y 向 x 发送消息时显示相同的内容,而不是最后一行中的“x”。我该怎么办?
cuo*_*glm 16
似乎y
已关闭消息。
在y
的终端中,输入:
$ mesg
is n
Run Code Online (Sandbox Code Playgroud)
意思y
是不允许其他人写到y
的终端。那么你应该尝试:
$ mesg y
Run Code Online (Sandbox Code Playgroud)
笔记
在您的情况下,上述命令中的此选项y与y
用户不同。
来自man mesg
:
NAME
mesg - control write access to your terminal
SYNOPSIS
mesg [y|n]
DESCRIPTION
Mesg controls the access to your terminal by others. It's typically used to allow or disallow other users to write to your terminal
(see write(1)).
OPTIONS
y Allow write access to your terminal.
n Disallow write access to your terminal.
If no option is given, mesg prints out the current access state of your terminal.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
57658 次 |
最近记录: |