Contents
How do I find my GID?
How to Find UID and GID
- Open a terminal window. …
- Type the command “su” to become the root user. …
- Type the command “id -u ” to find the UID for a particular user. …
- Type the command “id -g ” to find the primary GID for a particular user. …
- Type the command “id -G ” to list all the GIDs for a particular user.
How do I find my UID and GID in Linux?
Where to find stored UID? You can find the UID in the /etc/passwd file, which is the file that also stores all users registered in the system. To view the /etc/passwd file contents, run the cat command on the file, as shown below on the terminal.