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

Viewing Page 3 of 61

A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

  1. The checkdiskspace.service is not running.
  2. The checkdiskspace.service needs to be enabled.
  3. The OnCalendar schedule is incorrect in the timer definition.
  4. The system-daemon services need to be reloaded.

Answer(s): C



An administrator deployed a Linux server that is running a web application on port 6379/tcp.

SELinux is in enforcing mode based on organization policies.

The port is open on the firewall.

Users who are trying to connect to a local instance of the web application receive Error 13,

Permission denied.

The administrator ran some commands that resulted in the following output:



Which of the following commands should be used to resolve the issue?

  1. semanage port -d -t http_port_t -p tcp 6379
  2. semanage port -a -t http_port_t -p tcp 6379
  3. semanage port -a http_port_t -p top 6379
  4. semanage port -l -t http_port_tcp 6379

Answer(s): B



A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?

  1. hostnamectl status --no-ask-password
  2. hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
  3. hostnamectl set-hostname Comptia-WebNode -H root@192.168.2.14
  4. hostnamectl set-hostname Comptia-WebNode --transient

Answer(s): C



A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

  1. scp -p /data remote:/backup/data
  2. ssh -i /remote:/backup/ /data
  3. rsync -a /data remote:/backup/
  4. cp -r /data /remote/backup/

Answer(s): C



An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

  1. git clone https://github.com/comptia/linux+-.git
    git push origin
  2. git clone https://qithub.com/comptia/linux+-.git
    git fetch New-Branch
  3. git clone https://github.com/comptia/linux+-.git
    git status
  4. git clone https://github.com/comptia/linuxt+-.git
    git checkout -b <new-branch>

Answer(s): D



An administrator attempts to rename a file on a server but receives the following error.



The administrator then runs a few commands and obtains the following output:



Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

  1. chgrp reet files
  2. chacl -R 644 files
  3. chown users files
  4. chmod -t files

Answer(s): D



Which of the following commands will display the operating system?

  1. uname -n
  2. uname -s
  3. uname -o
  4. uname -m

Answer(s): C



A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?





Answer(s): D



Viewing Page 3 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