> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/check-group-of-a-user.md).

# Check Group Of A User

We can check group(s) a user is part of by following methods -

## Checking `/etc/group` File

```bash
cat /etc/group
```

## Using `groups` Command

```bash
group {USER_NAME}
```

Example -

```bash
jungle@Server01:~$ groups jungle
jungle : jungle sudo docker
```

***Source:*** [***GeeksForGeeks***](https://www.geeksforgeeks.org/how-to-check-the-groups-a-user-belongs-to-in-linux/)
