我在tty1中有一个名为x的用户,在tty2中有一个名为y的用户。现在x想要向y写一些消息,反之亦然。现在我在为tty1终端上键入write y tty2
它显示
write:write:您已关闭写权限
write:y已禁用消息
当y向x发送消息时显示的是相同的内容,而不是最后一行中的“ x”。我该怎么办?
似乎y
已关闭了消息。
在y
的终端中,输入:
$ mesg
is n
意思y
是不允许其他人写入y
的终端。然后,您应该尝试:
$ mesg y
笔记
上面命令中的选项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.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句