id (Unix)
From EverybodyWiki Bios & Wiki
In computer software, id is a program in Unix-like operating systems that prints the user or group identifier of the account by which the program is executed; an example of the command id as executed by user alice:
alice@darkstar:~$ id
uid=1016(alice) gid=100(users) groups=100(users)
The root account has a UID of 0:
root@darkstar:~# id
uid=0(root) gid=0(root) groups=0(root)
The whoami utility has been obsoleted by the id utility and displays a user's ID as a name:
alice@darkstar:~$ whoami
alice
alice@darkstar:~$ id -un # Where `-u` refers to `--user` and `-n` refers to `--name`
alice
See also[edit]
References[edit]
- The Single UNIX Specification, Issue 7 from The Open Group : return user identity – Commands & Utilities Reference,
This article "Id (Unix)" is from Wikipedia. The list of its authors can be seen in its historical. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.