LOGNAME

Section: User Commands (1)
Index Return to Main Contents

BSD mandoc
 

NAME

logname - display user's login name  

SYNOPSIS

logname  

DESCRIPTION

The logname utility writes the user's login name to standard output followed by a newline.

The logname utility explicitly ignores the LOGNAME and USER environment variables because the environment cannot be trusted.

The logname utility exits 0 on success, and >0 if an error occurs.  

SEE ALSO

who(1), whoami(1), getlogin(3)  

STANDARDS

The logname function is expected to conform to St -p1003.2 .  

HISTORY

The logname command is Ud .


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
STANDARDS
HISTORY

This document was created by man2html, using the manual pages.
Time: 06:26:27 GMT, May 19, 2025