Examples (6)
Display the current access control list
Allow a specific host to connect to the X server
xhost +hostnameDeny a specific host from connecting to the X server
xhost -hostnameAllow all hosts to connect (disable access control - insecure)
xhost +Deny all hosts except those explicitly allowed (enable access control)
xhost -Remove a specific user or address using a family prefix (like `inet:hostname` or `si:localuser:username`)
xhost -family:namemade by @shridhargupta | data from tldr-pages