Free XK0-005 Exam Braindumps (page: 20)

Page 20 of 43

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?

  1. $RHOST
  2. SETENV
  3. $SHELL
  4. $DISPLAY

Answer(s): D



A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content:



The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

  1. Add #!/bin/bash to the bottom of the script.
  2. Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.
  3. Add #!//bin/bash to the top of the script.
  4. Restart the computer to enable the new service.
  5. Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.
  6. Shut down the computer to enable the new service.

Answer(s): B,C



A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

  1. chmod 755 filename.log
  2. chmod 640 filename.log
  3. chmod 740 filename.log
  4. chmod 744 filename.log

Answer(s): D



After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

  1. chgrp system accountname
  2. passwd –s accountname
  3. chmod -G system account name
  4. chage -E -1 accountname

Answer(s): D



Page 20 of 43



Post your Comments and Discuss CompTIA XK0-005 exam with other Community members:

RF commented on September 06, 2024
Awesome resource
UNITED STATES
upvote

M commented on August 09, 2024
Great questions
Anonymous
upvote

Bob Igor commented on March 14, 2024
Question 11 is B not A because the ports are reversed on A
UNITED STATES
upvote

soheib commented on July 24, 2023
question: 78 the right answer i think is d not a
Anonymous
upvote

Lola commented on August 28, 2023
Good so far
Anonymous
upvote

soheib commented on July 24, 2023
Question: 78 the right answer i think is d not a
Anonymous
upvote

Gurunath commented on June 18, 2023
I just wanted to let you know I passed my exam today. The updated version you provided is on spot. Thank you.
INDIA
upvote

Nito commented on April 21, 2023
These questions are valid.
CANADA
upvote

Ortiz commented on November 07, 2022
I am certified now. You study packages helped me a lot. Your site is the best!
MEXICO
upvote