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

Viewing Page 8 of 61

SIMULATION

Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.

INSTRUCTIONS

Install Apache and start the service. Verify that the Apache service is running with the defaults.

Typing "help" in the terminal will show a list of relevant event commands.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

yum install httpd
systemctl --now enable httpd
systemctl status httpd
netstat -tunlp | grep 80
pkill <processname>
systemctl restart httpd
systemctl status httpd



A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

  1. rpm -s
  2. rm -d
  3. rpm -q
  4. rpm -e

Answer(s): D



A Linux system fails to start and delivers the following error message:



Which of the following commands can be used to address this issue?

  1. fsck.ext4 /dev/sda1
  2. partprobe /dev/sda1
  3. fdisk /dev/sda1
  4. mkfs.ext4 /dev/sda1

Answer(s): A



Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.



To which of the following configuration files will the required changes need to be made?

  1. /etc/login.defs
  2. /etc/security/limits.conf
  3. /etc/default/useradd
  4. /etc/profile

Answer(s): A



A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message:



Given the following analysis:



Which of the following is causing the error message?

  1. The administrator is not using a highly privileged account.
  2. The filesystem is mounted with the wrong options.
  3. SELinux file context is denying the ACL changes.
  4. File attributes are preventing file modification.

Answer(s): D



A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

  1. ls | cpio -iv > cloud.epio
  2. ls | cpio -iv < cloud.epio
  3. ls | cpio -ov > cloud.cpio
  4. ls cpio -ov < cloud.cpio

Answer(s): C



A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

  1. source ~/.bashrc
  2. read ~/.bashrc
  3. touch ~/.bashrc
  4. echo ~/.bashrc

Answer(s): A



A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

  1. id_dsa.pem
  2. id_rsa
  3. id_ecdsa
  4. id_rsa.pub

Answer(s): D



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