logname.1 (78b0b234eb5a179413189a3e2561e894c9c18135) | logname.1 (93e0d62d1c2a83232e87912c20f74ab92b0f22b2) |
---|---|
1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)logname.1 8.1 (Berkeley) 6/9/93 | 1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)logname.1 8.1 (Berkeley) 6/9/93 |
36.\" $Id$ |
|
36.\" 37.Dd "June 9, 1993" 38.Dt LOGNAME 1 39.Os BSD 4.4 40.Sh NAME 41.Nm logname 42.Nd display user's login name 43.Sh SYNOPSIS | 37.\" 38.Dd "June 9, 1993" 39.Dt LOGNAME 1 40.Os BSD 4.4 41.Sh NAME 42.Nm logname 43.Nd display user's login name 44.Sh SYNOPSIS |
44.Nm logname | 45.Nm |
45.Sh DESCRIPTION 46The | 46.Sh DESCRIPTION 47The |
47.Nm logname | 48.Nm |
48utility writes the user's login name to standard output followed by 49a newline. 50.Pp 51The | 49utility writes the user's login name to standard output followed by 50a newline. 51.Pp 52The |
52.Nm logname | 53.Nm |
53utility explicitly ignores the 54.Ev LOGNAME 55and 56.Ev USER 57environment variables 58because the environment cannot be trusted. 59.Pp 60The | 54utility explicitly ignores the 55.Ev LOGNAME 56and 57.Ev USER 58environment variables 59because the environment cannot be trusted. 60.Pp 61The |
61.Nm logname | 62.Nm |
62utility exits 0 on success, and >0 if an error occurs. 63.Sh SEE ALSO 64.Xr who 1 , 65.Xr whoami 1 , 66.Xr getlogin 2 67.Sh STANDARDS 68The | 63utility exits 0 on success, and >0 if an error occurs. 64.Sh SEE ALSO 65.Xr who 1 , 66.Xr whoami 1 , 67.Xr getlogin 2 68.Sh STANDARDS 69The |
69.Nm logname | 70.Nm |
70function is expected to conform to 71.St -p1003.2 . 72.Sh HISTORY 73The 74.Nm | 71function is expected to conform to 72.St -p1003.2 . 73.Sh HISTORY 74The 75.Nm |
75command appears in | 76command appeared in |
76.Bx 4.4 . | 77.Bx 4.4 . |