Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: big60

CompTIA Updated XK0-005 Exam Questions and Answers by farah

Page: 4 / 36

CompTIA XK0-005 Exam Overview :

Exam Name: CompTIA Linux+ Exam
Exam Code: XK0-005 Dumps
Vendor: CompTIA Certification: Linux+
Questions: 487 Q&A's Shared By: farah
Question 16

An administrator wants to copy files from /opt/tools to the home directory at /home/admin. Which of the following should the administrator run?

Options:

A.

mkdir -p /home/admin/tools

B.

cp -R /opt/tools ~

C.

cd /opt/tools; rsync /home/admin

D.

scp /opt/tools localhost:/

Discussion
Question 17

A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:

[ root@server ] # id user1

UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)

[ root@server ] # cat /etc/sudoers.d/custom.conf

user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd

webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart

#%wheel ALL=(ALL) NOPASSWD: ALL

Which of the following would most likely resolve the issue while maintaining a least privilege security model?

Options:

A.

User1 should be added to the wheel group to manage the service.

B.

User1 should have "NOPASSWD:" after the "ALL=" in the custom. conf.

C.

The wheel line in the custom. conf file should be uncommented.

D.

Webadmin should be listed as a group in the custom. conf file.

Discussion
Question 18

The journald entries have filled a Linux machine's /var volume. Which of the following is the best command for a systems administrator to use to free up the disk space occupied by these entries?

Options:

A.

journalctl —rotatejournalctl --vacuum-time=ls

B.

systemctl stop systemd-journaldsystemctl start systemd-journald

C.

rm -rf /var/log/journalsystemctl restart systemd-journald

D.

pkill -HUP systemd-journaldsystemctl restart systemd-journald

Discussion
Peyton
Hey guys. Guess what? I passed my exam. Thanks a lot Cramkey, your provided information was relevant and reliable.
Coby Aug 2, 2025
Thanks for sharing your experience. I think I'll give Cramkey a try for my next exam.
Esmae
I highly recommend Cramkey Dumps to anyone preparing for the certification exam.
Mollie Aug 8, 2025
Absolutely. They really make it easier to study and retain all the important information. I'm so glad I found Cramkey Dumps.
Ayesha
They are study materials that are designed to help students prepare for exams and certification tests. They are basically a collection of questions and answers that are likely to appear on the test.
Ayden Aug 3, 2025
That sounds interesting. Why are they useful? Planning this week, hopefully help me. Can you give me PDF if you have ?
Georgina
I used Cramkey Dumps to prepare for my recent exam and I have to say, they were a huge help.
Corey Aug 19, 2025
Really? How did they help you? I know these are the same questions appears in exam. I will give my try. But tell me if they also help in some training?
Ivan
I tried these dumps for my recent certification exam and I found it pretty helpful.
Elis Aug 10, 2025
Agree!!! The questions in the dumps were quite similar to what came up in the actual exam. It gave me a good idea of the types of questions to expect and helped me revise efficiently.
Question 19

A Linux administrator is creating a user that can run the FTP service but cannot log in to the system. The administrator sets /bin/false as a login shell for the user. When the user tries to run the FTP service, it is rejected with an "invalid shell: /bin/false" message. Which of the following is the best way to resolve the issue?

Options:

A.

Change ownership of /bin/false to the FTP user

B.

Add /bin/false entry to the /etc/shells file

C.

Make /bin/false an executable file

D.

Change the user’s default shell to /bin/bash

Discussion
Page: 4 / 36
Title
Questions
Posted

XK0-005
PDF

$42  $104.99

XK0-005 Testing Engine

$50  $124.99

XK0-005 PDF + Testing Engine

$66  $164.99