Files
tldr/pages.zh/linux/xauth.md

36 lines
735 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# xauth
> 编辑和显示用于连接 X 服务器的授权信息。
> 更多信息:<https://manned.org/xauth>。
- 使用特定的授权文件启动交互模式(默认为 `~/.Xauthority`
`xauth -f {{path/to/file}}`
- 显示有关授权文件的信息:
`xauth info`
- 显示所有显示器的授权条目:
`xauth list`
- 为特定显示器添加授权:
`xauth add {{display_name}} {{protocol_name}} {{key}}`
- 删除特定显示器的授权:
`xauth remove {{display_name}}`
- 将当前显示器的授权条目打印到 `stdout`
`xauth extract - $DISPLAY`
- 将特定文件中的授权条目合并到授权数据库中:
`cat {{path/to/file}} | xauth merge -`
- 显示帮助信息:
`xauth --help`