Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

CompTIA Linux+ [Powered by LPI] - Exam 2 (LX0-104) Free Practice Test

Question 1
Which of the following SQL statements will select the fieldsnameandaddressfrom the contacts table?

Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
FILL BLANK
Given the following line from/etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
By default, which file will be queried first for hostname lookups? (Specify the full name of the file, including path.)
Correct Answer:
/etc/hosts
Section: Networking Fundamentals
Question 4
How do shadow passwords improve the password security in comparison to standardpasswdpasswords?

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Which of the following actions prevents a specific user form scheduling tasks usingatorbatch?

Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

Correct Answer: C,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
What output will the following command produce?
seq 1 5 20

Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 9
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
FILL BLANK
Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)
Correct Answer:
mailq -or- /usr/bin/mailq -or- sendmail -bp -or- /usr/sbin/sendmail -bp -or- /usr/lib/sendmail - bp -or- sendmail -or- /usr/sbin/sendmail -or- /usr/lib/sendmail
Section: Essential System Services