Weekend Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

CompTIA XK0-005 Actual Questions

Page: 4 / 30
Total 396 questions

CompTIA Linux+ Exam Questions and Answers

Question 13

A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?

Options:

A.

chmod +t /project/access2all

B.

chmod +rws /project/access2all

C.

chmod 2770 /project/access2all

D.

chmod ugo+rwx /project/access2all

Question 14

An administrator would like to mirror the website files on the primary web server, www1, to the backup web server, www2. Which of the following commands

should the administrator use to most efficiently accomplish this task?

Options:

A.

[wwwl ] rsync —a —e ssh /var/www/html/ user1@www2 : /var/www/html

B.

[ wwwl ] scp —r /var/www/html user1@www2 : / var/www/html

C.

[www2 ] cd /var/www/html; wget —m http: //wwwl/

D.

[wwwl ] cd /var/www/html && tar cvf —

Question 15

NO: 54:

A new hard drive /dev/sdd was added to a server. Which of the following commands will create a partition table with a single partition /dev/sdd1 that consumes the entire disk?

Options:

A.

echo 'type=83' | sudo sfdisk /dev/sdd

B.

sudo sfdisk /dev/sdd -t=83

C.

echo 'auto' | sudo fdisk /dev/sdd

D.

sudo fdisk /dev/sdd -1 -t=83

Question 16

A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

Options:

A.

chown web:web /home/web

B.

chmod -R 400 /home/web

C.

echo "umask 377" >> /home/web/.bashrc

D.

setfacl read /home/web

Page: 4 / 30
Total 396 questions