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

  man pages->FreeBSD 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.

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

DIAGNOSTICS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

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

STANDARDS    [Toc]    [Back]

     The logname function is expected to conform to IEEE Std 1003.2
     (``POSIX.2'').

HISTORY    [Toc]    [Back]

     The logname command appeared in 4.4BSD.


FreeBSD 5.2.1			 June 9, 1993			 FreeBSD 5.2.1
[ 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