首页
首页 » 系统管理 » logname

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

--help

Print a help message and then exit.

--version

Print version information and then exit.