【Linux命令】查看用户信息
whoami、who。
【Linux命令】查看用户信息
whoami
Print the user name associated with the current effective user ID.
打印当前有效用户ID关联的用户名。
whoami的功能与以下id命令相同:
1
id -un
who
Print information about users who are currently logged in.
打印当前已登录用户的信息。
查看当前登录的所有用户信息:
1
who
查看所有信息:
1
who -a
本文由作者按照 CC BY 4.0 进行授权