xauth
linux
Edit and display the authorization information used in connecting to the X server.
More info →Examples (8)
Start interactive mode with a specific authority file (defaults to `~/.Xauthority`)
xauth -f path/to/fileDisplay authorization entries for all the displays
xauth listAdd an authorization for a specific display
xauth add display_name protocol_name keyRemove the authorization for a specific display
xauth remove display_namePrint the authorization entry for the current display to `stdout`
xauth extract - $DISPLAYMerge the authorization entries from a specific file into the authorization database
Display help
xauth --helpmade by @shridhargupta | data from tldr-pages