[kanchilug] 1D1C - groups

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 18 Aug 2022 06:00:00 +0530

groups - print the groups a user is in

$ groups [username]

Provided with a username ilugc
$ groups ilugc
ilugc : ilugc adm cdrom sudo dip plugdev lpadmin lxd sambashare libvirt
docker

To display group membership for the current user
$ groups

To find groups of root
# groups
root



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - groups - Dhanasekar