This commit is contained in:
nick
2018-05-23 20:36:33 +08:00
parent 33b05d66d1
commit ecc1b47d85
2 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#### users 命令
```
users #查看当前在线的用户名称
users #查看当前在线的用户名称列表
```
#### 用户分 3 种
@ -150,4 +150,12 @@ id -G #当前用户的附加组 id
id -u root #查看指定用户的 id
id root #查看指定用户的 id gid groupsid
```
#### who 命令
```
who #查看当前的在线用户、终端号、IP、登录时间
who -q #查看在线的用户的用户名,用户数
```