Section 3.28. Listing Your Groups: groups


[Page 73 (continued)]

3.28. Listing Your Groups: groups

Before changing my file's group setting, I wanted to confirm that I was now an official member of the "music" group. The groups utility allows you to list all of the groups that you're a member of (Figure 3-38).

Figure 3-38. Description of the groups command.

Utility: groups [ userId ]

When invoked with no arguments, the groups utility displays a list of all the groups that you are a member of. If the name of a user is specified, a list of that user's groups are displayed.


Here's what I saw when I executed groups:

$ groups      ...list my groups. cs   music $ _ 





Linux for Programmers and Users
Linux for Programmers and Users
ISBN: 0131857487
EAN: 2147483647
Year: 2007
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net