You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
448 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

whoami
===
打印当前有效的用户名称
## 补充说明
**whoami命令** 用于打印当前有效的用户名称,相当于执行`id -un`命令。
### 语法
```
whoami(选项)
```
### 选项
```
--help在线帮助
--version显示版本信息。
```
### 实例
```
[root@localhost ~]# whoami
root
[root@localhost ~]# id -un
root
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->