Commonly used · Permissions and links
groups: Query user group
Syntax
groupsExamples
groupsUsage and sandbox support
The teaching subset only queries the current user and returns learner and sudo.
Hands-on exercises
- View the current user's groupsEveryday
Related commands
chmodModify permissionschownModify ownerumaskSet new file permission masklnCreate symbolic linkreadlinkView symbolic link targetssudoExecute command as administratorchgrpModify the group to which the file belongsgetfaclView extended access controlsetfaclSet up extended access controllsattrQuery file attribute flagschattrModify file attribute flagssuSwitch user sessionpasswdChange account passworduseraddcreate AccountusermodModify account propertiesuserdelDelete accountgroupaddCreate user groupgetentQuery system account database