CompTIA XK0-005 Exam (page: 10)
CompTIA Linux+
Updated on: 25-Dec-2025

Viewing Page 10 of 61

A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command:



The following output is returned



Which of the following is MOST likely the issue?

  1. The service does not have permissions to read write the startupfile.
  2. The service startupfile size cannot be 81k.
  3. The service startupfile cannot be owned by root.
  4. The service startupfile should not be owned by the root group.

Answer(s): A



A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

  1. chown -s 755 devops
  2. chown 1755 devops
  3. chmod -s 755 devops
  4. chmod 1755 devops

Answer(s): D



A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?

  1. The administrator did not reboot the server properly.
  2. The administrator did not set the default target to basic.target.
  3. The administrator did not set the default target to graphical.target.
  4. The administrator did not shut down the server properly.

Answer(s): C



Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:



Which of the following is causing the connection issue?

  1. The process mysqld is using too many semaphores.
  2. The server is running out of file descriptors.
  3. Something is starving the server resources.
  4. The amount of RAM allocated to the server is too high.

Answer(s): C



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 systemd 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



Viewing Page 10 of 61



Share your comments for CompTIA XK0-005 exam with other users:

soheib 7/24/2023 7:05:00 PM

question: 78 the right answer i think is d not a
Anonymous