LOGNAME

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

BSD mandoc
BSD 4.4  

NAME

logname - display user's login name  

SYNOPSIS

 

DESCRIPTION

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

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

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

SEE ALSO

who(1), whoami(1), getlogin(2)  

STANDARDS

The utility conforms to St -p1003.2-92 .  

HISTORY

The command appeared in BSD 4.4


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
STANDARDS
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:29:50 GMT, April 24, 2025