CompTIA Linux+ (XK0-005) — Question 63
A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?
Answer options
- A. $RHOST
- B. SETENV
- C. $SHELL
- D. $DISPLAY
Correct answer: D
Explanation
$DISPLAY is the correct variable as it indicates where the graphical output should be directed in an X11 session. The other options, such as $RHOST, SETENV, and $SHELL, do not relate to the graphical display setup and will not facilitate the launching of the graphical interface.