LOGNAME(1)LOGNAME(1)NAMElogname - get login name
SYNOPSISlognameDESCRIPTIONlogname prints the name of the user who invoked the command. It gets
this name via cuserid(3S).
SEE ALSOsu(1), login(1), cuserid(3S), environ(5)DIAGNOSTICSlogname exits with a value of 1 if cuserid returns NULL, otherwise it
exits with a 0.
Page 1