> For the complete documentation index, see [llms.txt](https://man.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man.bsdcn.org/man1/whoami.1.md).

# whoami(1)

`whoami` — 显示有效用户 ID

## 名称

`whoami`

## 概要

`whoami`

## 描述

`whoami` 实用程序已被 [id(1)](/man1/id.1.md) 实用程序取代，等同于 “`id` `-un`”。建议在正常交互使用时使用 “`id` `-p`” 命令。

`whoami` 实用程序以名称形式显示你的有效用户 ID。

## 退出状态

`whoami` 实用程序成功时退出值为 0，发生错误时大于 0。

## 参见

[id(1)](/man1/id.1.md)
