OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / original / man1 / logname.1
1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
4 .\"
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
8 .\"
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU logname man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .TH logname 1 "18 June 2002" "GNU Shell Utilities 2.1"
15 .SH NAME
16 logname \- print user's login name
17 .SH SYNOPSIS
18 .B logname
19 .sp
20 .B logname [\-\-help] [\-\-version]
21 .SH DESCRIPTION
22 .B logname
23 prints the calling user's name, as found in the file /var/run/utmp, and
24 exits with a status of 0.  If there is no /var/run/utmp entry for the
25 calling process,
26 .B logname
27 prints an error message and exits with a status of 1.
28 .SH OPTIONS
29 .TP
30 .B "\-\-help"
31 Print a usage message on standard output and exit successfully.
32 .TP
33 .B "\-\-version"
34 Print version information on standard output then exit successfully.
35 .SH NOTES
36 Report bugs to bug-sh-utils@gnu.org.  Page updated by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>