> 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-if-a-user-exists.md).

# Check If A User Exists

We can check if a user exists on Linux System by `id` command.

> id - print real and effective user and group IDs

## Example

```bash
id -u jungle
1000
```

If a user does not exists on system, it throws an error. For example -

```bash
id -u unknown
id: ‘unknown’: no such user
```

***Source:*** [***StackOverFlow***](https://stackoverflow.com/a/14811915)
