LOGNAME ( 1 ) USER COMMANDSLOGNAME ( 1 )


NAME

logname - return the user's login name

SYNOPSIS

logname [ options ]

DESCRIPTION

logname writes the users's login name to standard output. The login name is the string that is returned by the getlogin(2) function. If getlogin(2) does not return successfully, the corresponding to the real user id of the calling process is used instead.

EXIT STATUS

0
Successful Completion.
>0

An error occurred.

SEE ALSO

getlogin(2)

IMPLEMENTATION

version

logname (AT&T Research) 1999-04-30
author

Glenn Fowler <glenn.s.fowler@gmail.com>
author

David Korn <dgkorn@gmail.com>
copyright

Copyright © 1992-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html