*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getuid | Section: 1 | Source: UNIX v10 | File: getuid.1
GETUID(1) General Commands Manual GETUID(1) NAME getuid, id - get user identity SYNOPSIS getuid [ - ] [ arguments ] id DESCRIPTION Getuid prints on its standard output information about its invoker, based on the effective user id, as presented in the password file. With no arguments, getuid prints the login id of its invoker. Argu- ments select which information to print: user login id group group id passwd encrypted password uid numerical user id gid numerical group id acct comp center account number bin comp center output bin home home directory shell default shell If the optional - or more than one argument is present, the information is displayed in the form user=name as suitable for setting environment variables in the shell. Id prints the effective userid and groupid and the login name. The userid and groupid are printed numerically and, if possible, textually. FILES SEE ALSO who(1), getuid(2), passwd(5), newgrp(1) BUGS Getuid reports the default group for the user, not the current effec- tive group id. The login id reported is the first one in the password file with the correct numerical user id, not necessarily the login for the current session. GETUID(1)

Navigation Options