xauth

Edit and display the authorization information used in connecting to the X server. More information: https://manned.org/xauth.

xauth -f path/to/file

xauth info

xauth list

xauth add display_name protocol_name key

xauth remove display_name

xauth extract - $DISPLAY

cat path/to/file | xauth merge -

xauth --help