# xauth

显示和编辑被用于连接X服务器的认证信息

## 补充说明

**xauth命令** 用于显示和编辑被用于连接X服务器的认证信息。

### 语法

```
xauth(选项)(参数)
```

### 选项

```
-f：不使用默认的认证文件，而使用指定的认证文件；
-q：安静模式，不打印未请求的状态信息；
-v：详细模式，打印指定的各种操作信息；
-i：忽略认证文件锁定；
-b：执行任何操作，终端认证文件锁定。
```

### 参数

* add：添加认证条目到认证文件中；
* extract：将指定的设备内容加入到指定的密码文件中；
* info：显示授权文件相关信息；
* exit：退出交互模式；
* list：列出给定的显示设备的内容；
* merge：合并多个授权文件内容；
* extract：将指定设备内容写入指定的授权文件；
* nextrct：将指定设备内容写入指定的授权文件；
* nmerge：合并多个授权文件内容；
* remove：删除指定显示设备的授权条目；
* source：从指定文件读取包含xauth的内容指令。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/xauth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
