logname(1) — Commands
NAME
logname − Displays user login name
SYNOPSIS
logname
DESCRIPTION
The logname command writes to standard output the name you used to log into the system.
RELATED INFORMATION
Commands: env(1)/printenv(1), login(1).
Functions: getlogin(2).