*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> logname (1)              
Title
Content
Arch
Section
 

LOGNAME(1)

Contents


NAME    [Toc]    [Back]

     logname - display user's login name

SYNOPSIS    [Toc]    [Back]

     logname

DESCRIPTION    [Toc]    [Back]

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

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

     The logname utility exits 0 on success or >0 if an error occurred.

SEE ALSO    [Toc]    [Back]

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

STANDARDS    [Toc]    [Back]

     The   logname  utility  conforms  to  IEEE  Std  1003.2-1992
(``POSIX.2'').

HISTORY    [Toc]    [Back]

     The logname command appeared in 4.4BSD.

OpenBSD      3.6                           June      9,      1993
[ Back ]
 Similar pages
Name OS Title
listusers HP-UX display user login data
logins HP-UX display system and user login data
sd HP-UX display and monitor job information and create and remove jobs; invoke graphical user interface to display and
swjob HP-UX display and monitor job information and create and remove jobs; invoke graphical user interface to display and
wtmps HP-UX user login information
logname Tru64 Displays user login name
useradd HP-UX add a new user login to the system
sulogin Linux Single-user login
btmps HP-UX user login information
cuserid IRIX get character login name of the user
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service