Pre-Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

XK0-005 CompTIA Linux+ Exam is now Stable and With Pass Result | Test Your Knowledge for Free

Exams4sure Dumps

XK0-005 Practice Questions

CompTIA Linux+ Exam

Last Update 7 hours ago
Total Questions : 487

Dive into our fully updated and stable XK0-005 practice test platform, featuring all the latest Linux+ exam questions added this week. Our preparation tool is more than just a CompTIA study aid; it's a strategic advantage.

Our free Linux+ practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about XK0-005. Use this test to pinpoint which areas you need to focus your study on.

XK0-005 PDF

XK0-005 PDF (Printable)
$43.75
$124.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$50.75
$144.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$63.7
$181.99
Question # 21

User1 reports "access denied" errors while trying to execute app. Given the following outputs:

Question # 21

Which of the following options will remediate this issue?

Options:

A.  

Providing execute permissions to user1 in the ACL

B.  

Modifying the permissions for others to grant read, write, and execute

C.  

Adding user1 to the wheel group

D.  

Moving app to a different folder

Discussion 0
Question # 22

A Linux systems administrator is trying to execute a particular shell script on a server. The administrator reviews the following outputs:

shell

$ ./startup.sh

bash: ./startup.sh: Permission denied

$ ls -l startup.sh

-rw-rw-r-- 1 companyabc companyabc 18 October 15:35 startup.sh

Which of the following commands should the administrator use to allow the script to run?

Options:

A.  

chown rootstartup.sh

B.  

chmod 750 startup.sh

C.  

chmod -x startup.sh

D.  

chmod 400 startup.sh

Discussion 0
Question # 23

A server administrator has scheduled a cron job to run YUM updates on all servers without manual intervention, but kernel packages must be excluded from the updates at all times. Which of the following configuration files needs to be modified to make these changes persistent?

Options:

A.  

/etc/yum.conf

B.  

/etc/dnf/dnf.conf

C.  

/etc/yum/pluginconf.d/packages.conf

D.  

/etc/yum.repo.d/kernel.repo

Discussion 0
Question # 24

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).

Options:

A.  

Rename the mount file to home-user1-My\x20Documents.mount.

B.  

Rename the mount file to home-user1-my-documents.mount.

C.  

Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\-297ab3c7ff34.

D.  

Change the Where entry to Where=/home/user1/my\ documents.

E.  

Change the Where entry to Where=/home/user1/My\x20Documents.

F.  

Add quotes to the What and Where entries, such as What="/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34" and Where="/home/user1/My Documents".

Discussion 0
Question # 25

A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The

administrator runs a few commands and receives the following output:

Which of the following tasks should the administrator perform to resolve this issue?

Options:

A.  

Update the name server in resolv. conf to use an external DNS server.

B.  

Remove the entry for portal . comptia.org from the local hosts file.

C.  

Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.

D.  

Clear the local DNS cache on the workstation and rerun the host command.

Discussion 0
Question # 26

A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?

Options:

A.  

iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128

B.  

iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT –-to-destination 192.0.2.25:3129

C.  

iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT –-to-destination 192.0.2.25:3129

D.  

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination 192.0.2.25:3128

Discussion 0
Question # 27

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.)

Options:

A.  

Add #!/bin/bash to the bottom of the script.

B.  

Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.

C.  

Add #!//bin/bash to the top of the script.

D.  

Restart the computer to enable the new service.

E.  

Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.

F.  

Shut down the computer to enable the new service.

Discussion 0
Question # 28

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

Which of the following commands would be BEST to use to accomplish this task?

Options:

A.  

chattr +a /opt/app/logs

B.  

chattr +d /opt/app/logs

C.  

chattr +i /opt/app/logs

D.  

chattr +c /opt/app/logs

Discussion 0
Question # 29

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

Options:

A.  

docker image load java:7

B.  

docker image pull java:7

C.  

docker image import java:7

D.  

docker image build java:7

Discussion 0
Question # 30

A Linux systems administrator is updating code. After completing the update, the administrator wants to publish the updated code without including the configuration files. Which of the following should the administrator use to accomplish this task?

Options:

A.  

git clone

B.  

git -

C.  

.gitignore

D.  

git fetch

Discussion 0
Get XK0-005 dumps and pass your exam in 24 hours!

Free Exams Sample Questions