exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 77 discussion

Actual exam question from CompTIA's XK0-005
Question #: 77
Topic #: 1
[All XK0-005 Questions]

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?

  • A. $RHOST
  • B. SETENV
  • C. $SHELL
  • D. $DISPLAY
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
1 year, 8 months ago
D. $DISPLAY The DISPLAY environment variable tells the X Window System which display to use for any graphical applications that are launched. When using X11 forwarding over SSH, the DISPLAY variable must be set in the remote shell to the value of the display on the local system. This allows graphical applications running on the remote system to display their windows on the local system.
upvoted 2 times
...
TheRealManish
1 year, 11 months ago
Selected Answer: D
I pick D. the only hesitation I have is that installing X11 should set that automatically.
upvoted 2 times
e418137
9 months ago
It's a weird question these days. Imagine you have the workstation running X11. You use SSH to connect to a server, and you find software that you want to run. It's graphical software that won't run because it cannot find a display. On the remote server, you would 'export DISPLAY=hostname_or_ip_address:display_number' to cause the software to send its drawing commands to your local display.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago