How to display another user's ID?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 17 2025
0167

To display another user's ID, you can use the id command followed by the username. For example, to check the ID of a user named npc, you would run:

id npc

Example Output:

uid=1001(npc) gid=1001(npcgroup) groups=1001(npcgroup),...

This will show the user ID (UID), primary group ID (GID), and the groups that the user npc belongs to. If you have any further questions, let me know!

0 Comments

no data
Be the first to share your comment!