Introduction to UNIX User Management

To find out what user ID number you are, the id(1) command can be used:

$ id
uid=1001(me) gid=2010(mygrp) groups=2010(mygrp), 2011(dev)
$

The id(1) command indicates that the user me is user ID number 1001 and is a member of group number 2010. The user and group names are shown in brackets. These were obtained by looking up the user ID and group ID numbers in the password and group file databases, respectively.

Understanding Username and User ID Numbers

The id(1) command previously reported that username me was user ID 1001. Another term for the user ID number is the uid number. This is derived from the fact that UNIX systems today keep the user ID number in the C data type uid_t. The following summarizes ...

Get Advanced UNIX Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.