Pass4itsure > CompTIA > CompTIA Linux+ > LX0-102 > LX0-102 Online Practice Questions and Answers

LX0-102 Online Practice Questions and Answers

Questions 4

Which of the following is the purpose of the dig command?

A. To adjust a directory's hidden permissions

B. To search for files on the filesystem

C. To adjust a file's hidden permissions

D. To perform hostname lookups

E. To ping all known hosts on the current subnet

Buy Now
Questions 5

Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect:

A. A problem with NFS

B. A problem with DNS

C. A problem with NIS

D. A problem with routing

E. That the netstat daemon has crashed

Buy Now
Questions 6

Which of the following lines would an administrator find in the file /etc/nsswitch.conf?

A. order hosts,bind

B. 192.168.168.4 dns-server

C. hosts: files dns

D. domain mycompany.com

Buy Now
Questions 7

Which of the following is the BEST way to temporarily suspend a user's ability to interactively login?

A. Changing the user's UID.

B. Changing the user's password.

C. Changing the user's shell to /bin/false.

D. Removing the user's entry in /etc/passwd.

E. Placing the command logout in the user's profile.

Buy Now
Questions 8

Which of the following Class B IPv4 networks are reserved by IANA for private address assignment and private routing? (Select TWO).

A. 128.0.0.0

B. 169.16.0.0

C. 169.254.0.0

D. 172.16.0.0

E. 172.20.0.0

Buy Now
Questions 9

Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?

A. Use passwd -d username to give the user an empty password.

B. Use chage to expire the user account.

C. Change the user's password.

D. Add the command exit to the user's .login file.

Buy Now
Questions 10

Which of the following statements is true regarding the following /etc/resolv.conf file?

search example.com nameserver 208.77.188.166 nameserver 208.77.188.167

A. There is a syntax error.

B. If DNS queries to the localhost fail, the server 208.77.188.166 will be queried.

C. example.com will be appended to all host lookups.

D. example.com will be appended to host names when they do not contain dots.

E. The DNS server with the shortest ping time will be queried first. If the lookup fails, the second server will be queried.

Buy Now
Questions 11

What keyword is missing from this code sample of a shell script?

____ i in *.txt; do echo $i done

A. for

B. loop

C. until

D. while

Buy Now
Questions 12

An administrator decides to use xinetd instead of inetd. Now, the administrator needs to transfer information from /etc/inetd.conf to another file. What file must be created or edited? (Please specify the full path).

Buy Now
Questions 13

What is the command to delete the default gateway from the system IP routing table? (Please specify the complete command with arguments, please no duplicate answers in this field.)

Buy Now
Exam Code: LX0-102
Exam Name: CompTIA Linux+ [Powered by LPI] Exam 2
Last Update: May 03, 2024
Questions: 177
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99