Curious about Actual CompTIA Linux+ (XK0-005) Exam Questions?

Here are sample CompTIA Linux+ Certification (XK0-005) Exam questions from real exam. You can get more CompTIA Linux+ (XK0-005) Exam premium practice questions at TestInsights.

Page: 1 /
Total 370 questions
Question 1

A Linux administrator is troubleshooting a systemd mount unit file that is not working correctly. The file contains:

[root@system] # cat mydocs.mount

[Unit]

Description=Mount point for My Documents drive

[Mount]

What=/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34

Where=/home/user1/My Documents

Options=defaults

Type=xfs

[Install]

WantedBy=multi-user.target

The administrator verifies the drive UUID correct, and user1 confirms the drive should be mounted as My Documents in the home directory. Which of the following can the administrator

do to fix the issues with mounting the drive? (Select two).


Correct : A, E

The mount unit file name and the Where entry must be escaped to handle spaces in the path. Reference The mount unit file name must be named after the mount point directory, with spaces replaced by\x20. SeeHow to escape spaces in systemd unit files?andsystemd.mount. The Where entry must use\x20to escape spaces in the path. Seesystemd.mountandThe workaround is to use /usr/bin/env followed by the path in quotes..


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 2

Users are experiencing high latency when accessing a web application served by a Linux machine. A systems administrator checks the network interface counters and sees the following:

XK0-005 Exam Question 2 Exhibit 1

Which of the following is the most probable cause of the observed latency?


Correct : B

The high number of errors and dropped packets in the output of the network interface counters indicate a connection problem on the network interface.


CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Networking, Section: Troubleshooting Network Issues, Page 359.

Linux+ (Plus) Certification, Exam Objectives: 4.3 Given a scenario, troubleshoot and resolve basic network configuration and connectivity issues.

Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 3

While troubleshooting server issues, a Linux systems administrator obtains the following output:

[rootGhost ~]# total free -m used free shared buf f/cache available

Mem: 3736 3598 88 2 48 29

Swap: 2047 1824 223

Which of the following best describes the state of the system?


Correct : B

The output shows that the system has a total of 3736MB of memory, of which 3598MB is free.This indicates that the system has enough free memory space12.

Reference: 1(https://phoenixnap.com/kb/swap-space) 2(https://www.baeldung.com/linux/swap-space-use)


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 4

A network administrator issues the dig ww. compti

a. org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?


Correct : A

Thedigcommand uses the DNS servers listed in the/etc/resolv.conffile to resolve domain names. If thedigcommand returns an NXDOMAIN response, it means the domain does not exist according to the DNS servers used.Therefore, the administrator should check the/etc/resolv.conffile first34.

Reference: 3(https://www.linuxquestions.org/questions/linux-newbie-8/help-me-dig-status-nxdomain-4175684441/) 4(https://serverfault.com/questions/729025/what-are-all-the-flags-in-a-dig-response)


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 5

An administrator is provisioning an Apache web server. When the administrator visits the server website, the browser displays a message indicating the website cannot be reached. Which of the following commands should the administrator use to verify whether the service Is running?


Correct : A

systemctl status httpd is the correct option to check if the Apache web server (httpd) is running. The systemctl status command provides detailed information about the service, including whether it is active and running.


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Page:    1 / 74   
Total 370 questions