Problem scenario: You know the Linux username that you want to use. But you do not know its corresponding UID or GID. How do you find the UID when you only know the username?
Use the id command. For example:
The results will give you the UID and GID.