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
If a user does not exists on system, it throws an error. For example -
Source: StackOverFlow
Last updated