logname

display user name 

Command


SYNOPSIS

logname


DESCRIPTION

logname displays the login name of the person who issues the command.

Windows use the GetUserName() function to determine the user login name. On Windows NT/2000/XP/2003/Vista the name of the account that was logged into the computer is displayed.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

logname could not determine the login name.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. UNIX System V. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
env, id

Miscellaneous:
envvar


MKS Toolkit 9.2 Documentation Build 16.