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
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.
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
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"
16 logname \- print user's login name
20 .B logname [\-\-help] [\-\-version]
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
27 prints an error message and exits with a status of 1.
31 Print a usage message on standard output and exit successfully.
34 Print version information on standard output then exit successfully.
36 Report bugs to bug-sh-utils@gnu.org. Page updated by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>