version 1.5, 1998/09/26 19:55:01 |
version 1.6, 1999/06/05 01:21:32 |
|
|
.\" |
.\" |
.Dd June, 9, 1993 |
.Dd June, 9, 1993 |
.Dt LOGNAME 1 |
.Dt LOGNAME 1 |
.Os BSD 4.4 |
.Os |
.Sh NAME |
.Sh NAME |
.Nm logname |
.Nm logname |
.Nd display user's login name |
.Nd display user's login name |
|
|
.Nm logname |
.Nm logname |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm logname |
.Nm |
utility writes the user's login name to standard output followed by |
utility writes the user's login name to standard output followed by |
a newline. |
a newline. |
.Pp |
.Pp |
The |
The |
.Nm logname |
.Nm |
utility explicitly ignores the |
utility explicitly ignores the |
.Ev LOGNAME |
.Ev LOGNAME |
and |
and |
|
|
because the environment cannot be trusted. |
because the environment cannot be trusted. |
.Pp |
.Pp |
The |
The |
.Nm logname |
.Nm |
utility exits 0 on success or >0 if an error occurred. |
utility exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr who 1 , |
.Xr who 1 , |
|
|
.Xr getlogin 2 |
.Xr getlogin 2 |
.Sh STANDARDS |
.Sh STANDARDS |
The |
The |
.Nm logname |
.Nm |
utility conforms to |
utility conforms to |
.St -p1003.2-92 . |
.St -p1003.2-92 . |
.Sh HISTORY |
.Sh HISTORY |
The |
The |