LOGNAME(1) General Commands Manual LOGNAME(1)
logname - get the name by which you logged in
logname returns the contents of the environment variable LOGNAME, which
is set when a user logs into the system.
env(1), login(1), environ(5V)
The following warnings apply when login accounts contain characters
outside the range of 7-bit ASCII:
o A user cannot rlogin to account-name containing 8-bit characters
from a system that does not handle 8-bit characters.
o A user cannot log in to account-name containing 8-bit characters
from a 7-bit ASCII terminal (through a modem, for example).
o Several parts of the C library are not tested for 8-bit user names.
o Codeset mapping can vary between systems, so an 8-bit pattern can
represent different characters on different sytems.
o Password algorithms do not work with 8-bit characters.
9 September 1987 LOGNAME(1)