Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ id(1) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

logname(1)

getuid(2)

ID(1)

NAME

id − print user and group IDs and names

SYNOPSIS

id [ −gnru ]

DESCRIPTION

Id writes a message on the standard output giving the user and group IDs and the corresponding names of the invoking process.  If the effective and real IDs do not match, both are printed. The following options are available:

−g Output only the group ID.  The default output format is "%d\n".  To modify, use the −n option.  The default group ID is the effective group ID.  To modify, use the −r option. 

−n With −u or −g, output the name in the format "%s\n" instead of the numeric ID. 

−r With −u or −g, output the real ID instead of the effective ID. 

−u Output only the user ID.  The default output format is "%d\n".  To modify, use the −n option.  The default group ID is the effective group ID.  To modify, use the −r option. 

AUTHOR

Id was developed by Hewlett-Packard Company and AT&T Bell Laboratories. 

SEE ALSO

logname(1), getuid(2). 

STANDARDS CONFORMANCE

id: SVID2, XPG2, XPG3
 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026