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
593 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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