[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


logname Command

Purpose

Displays login name.

Syntax

logname

Description

The logname command displays the login name of the current process. This is the name that the user logged in with and corresponds to the LOGNAME variable in the system-state environment. This variable is only set when the user logs into the system.

Security

Access Control: This program is installed as a normal user program in the Trusted Computing Base.

Exit Status

This command returns the following exit values:

0 Successful completion.
>0 An error occurred.

Examples

To display your login name to standard output, enter:

logname

Files


/usr/bin/logname Contains the logname command.

Related Information

The getty command, the login command, the setgroups command, the setsenv command, the su command, the tsm command.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]