How to find your uid(userid) and gid(groupid) in Linux via the command line

2 Comments
  • Knowledge Base
  • Linux
  • How to find your uid(userid) and gid(groupid) in Linux via the command line
  1. Open a new Terminal Window (Command Line) if in GUI mode
  2. Find your username by typing the command:  whoami
  3. Type in the command id username to find your gid and uid
    EXAMPLE of resultsuid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found.

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
Ian CarnaghanVarad Pradhan Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Varad Pradhan
Guest
Varad Pradhan

Thanks- ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare) what does that means please?

Menu