
xephyr:tldr:132b7
DISPLAY=:2 ${command_name} is a command used to set the display environment variable to ":2" and then execute the command specified by ${command_name}.
In Linux and Unix-like systems, the DISPLAY environment variable is used to determine the display server that graphical applications should connect to. It specifies the network address or socket path of the X server where the graphical output will be displayed.
By setting DISPLAY=:2, you are specifying the second X server, typically referred to as "localhost:2", to which the graphical application should be connected.
Then, ${command_name} represents the actual command that you want to execute. It can be any valid command or program that you want to run.
So, when you run DISPLAY=:2 ${command_name}, it sets the display server to the second X server and executes the specified command using that display server. This is useful when you have multiple X servers running on your system and you want to run a command specifically on one of them.