unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



logname(1)							   logname(1)



NAME

  logname - Displays user login	name

SYNOPSIS

  logname

STANDARDS

  Interfaces documented	on this	reference page conform to industry standards
  as follows:

  logname:  XCU5.0

  Refer	to the standards(5) reference page for more information	about indus-
  try standards	and associated tags.

OPTIONS

  None

OPERANDS

  None

DESCRIPTION

  The logname command writes to	standard output	the name you used to log into
  the system.

NOTES

  The logname command explicitly ignores the LOGNAME environment variable to
  avoid	erroneous results from environment changes.

EXIT STATUS

  The following	exit values are	returned:

  0   Successful completion.

  >>0  The getlogin() utility would fail.

ENVIRONMENT VARIABLES

  The following	environment variables affect the execution of *cmd*:

  LANG
      Provides a default value for the internationalization variables that
      are unset	or null. If LANG is unset or null, the corresponding value
      from the default locale is used.	If any of the internationalization
      variables	contain	an invalid setting, the	utility	behaves	as if none of
      the variables had	been defined.

  LC_ALL
      If set to	a non-empty string value, overrides the	values of all the
      other internationalization variables.

  LC_CTYPE
      Determines the locale for	the interpretation of sequences	of bytes of
      text data	as characters (for example, single-byte	as opposed to multi-
      byte characters in arguments).

  LC_MESSAGES
      Determines the locale for	the format and contents	of diagnostic mes-
      sages written to standard	error.

  NLSPATH
      Determines the location of message catalogues for	the processing of
      LC_MESSAGES.

SEE ALSO

  Commands:  id(1), env(1), login(1), who(1)

  Functions:  getlogin(2)

  Standards:  standards(5)