The whoami
command prints the currently logged in username.
Syntax format: whoami [parameter]
Common parameters:
Example
# 显示当前登录的用户名whoami
This article is reprinted from https://xugaoxiang.com/2022/06/23/linux-cmds-72-whoami/
This site is for inclusion only, and the copyright belongs to the original author.