> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/nm.md).

# nm

显示二进制目标文件的符号表

## 补充说明

**nm命令** 被用于显示二进制目标文件的符号表。

### 语法

```
nm(选项)(参数)
```

### 选项

```
-A：每个符号前显示文件名；
-D：显示动态符号；
-g：仅显示外部符号；
-r：反序显示符号表。
```

### 参数

目标文件：二进制目标文件，通常是库文件和可执行文件。
