logname
logname功能说明:显示用户名称。
语 法:logname [--help][--version]
补充说明:执行logname指令,它会显示目前用户的名称。
参 数:
--help 在线帮助。
--vesion 显示版本信息。
logname
logname [option]
Consult /var/run/utmp for user's login name. If found, print it; otherwise, exit with an error message.
Options
Print a help message and then exit.
Print version information and then exit.