You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
575 B

7 years ago
groups
===
用来打印指定用户所属的工作组
6 years ago
## 说明
7 years ago
5 years ago
**groups命令** 在标准输入输出上输出指定用户所在组的组成员,每个用户属于`/etc/passwd`中指定的一个组和在`/etc/group`中指定的其他组
7 years ago
5 years ago
## 选项
7 years ago
```
groups(选项)(参数)
```
6 years ago
7 years ago
```
5 years ago
-help显示命令的帮助信息
--version显示命令的版本信息
7 years ago
```
### 参数
5 years ago
用户名:指定要打印所属工作组的用户名
7 years ago
5 years ago
## 实例
7 years ago
显示linux用户所属的组
```
groups linux
linux : linux adm dialout cdrom plugdev lpadmin admin sambashare
```