mirror of
https://github.com/Estom/notes.git
synced 2026-04-29 13:04:35 +08:00
linux 命令和教程补充
This commit is contained in:
27
Linux/command/mesg.md
Normal file
27
Linux/command/mesg.md
Normal file
@@ -0,0 +1,27 @@
|
||||
mesg
|
||||
===
|
||||
|
||||
设置当前终端的写权限
|
||||
|
||||
## 补充说明
|
||||
|
||||
**mesg命令** 用于设置当前终端的写权限,即是否让其他用户向本终端发信息。将mesg设置y时,其他用户可利用write命令将信息直接显示在您的屏幕上。
|
||||
|
||||
### 语法
|
||||
|
||||
```shell
|
||||
mesg(参数)
|
||||
```
|
||||
|
||||
### 参数
|
||||
|
||||
y/n:y表示运行向当前终端写信息,n表示禁止向当前终端写信息。
|
||||
|
||||
### 实例
|
||||
|
||||
```shell
|
||||
[root@localhost ~]# mesg y #允许系统用户将信息直接显示在你的屏幕上。
|
||||
[root@localhost ~]# mesg n #不允许系统用户将信息直接显示在你的屏幕上。
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user