Free XK0-005 Exam Braindumps (page: 21)

Page 20 of 96

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






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

XK0-005 Exam Discussions & Posts