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

XK0-005 CompTIA Exam Lab Questions

Page: 23 / 37
Total 487 questions

CompTIA Linux+ Exam Questions and Answers

Question 89

A Linux administrator is creating a directory called CompTIA_doc and needs to switch to another location to perform some system-related tasks. Which of the following commands should the administrator use for this task?

Options:

A.

mkdir CompTIA doc & cd CompTIA doc

B.

mkdir CompTIA_doc > cd CompTIA_doc

C.

mkdir CompTIA_doc || cd CompTIA_doc

D.

mkdir CompTIA_doc && cd CompTIA_doc

Question 90

A Linux administrator receives a ticket stating that end users are unable to access the company’s internal cloud server. The administrator executes the following command:

bash

ping usl.com

Result:

ping: cannot resolve usl.com: Unknown Host

Which of the following files needs to be modified to allow end users to access usl.com?

Options:

A.

/etc/resolv.conf

B.

/etc/interfaces

C.

/etc/hosts.allow

D.

/etc/hostname

Question 91

A Linux administrator is troubleshooting connectivity issues and receives the following outputs:

python

Copy

$ ping comptia.org

ping: comptia.org: Temporary failure in name resolution

$ ping 104.18.17.29

64 bytes from 104.18.17.29: icmp_seq=1 ttl=63 time=31.4 ms

...

Which of the following describes the issue?

Options:

A.

A DNS has not been configured in the /etc/resolv.conf file

B.

A name server IP address has not been added in the /etc/protocols file

C.

The network interface is disabled

D.

A gateway IP address has not been configured on the network interface's configuration file

Question 92

The group owner of the / home/ test directory would like to preserve all group permissions on files created in the directory. Which of the following

commands should the group owner execute?

Options:

A.

chmod g+s /home/test

B.

chgrp test /home/test

C.

chmod 777 /home/test

D.

chown —hR test /home/test

Page: 23 / 37
Total 487 questions