Proper study guides for Improved CompTIA CompTIA Linux+ [Powered by LPI] - Exam 2 certified begins with CompTIA LX0-104 preparation products which designed to deliver the Approved LX0-104 questions by making you pass the LX0-104 test at your first time. Try the free LX0-104 demo right now.

Q1. - (Topic 1) 

What is the difference between the commands test -e path and test -f path? 

A. They are equivalent options with the same behaviour. 

B. The -f option tests for a regular file. The -e option tests for an empty file. 

C. Both options check the existence of the path. The -f option also confirms that it is a regular file. 

D. The -f option tests for a regular file. The -e option tests for an executable file. 

Answer:


Q2. - (Topic 5) 

What is the purpose of the nsswitch.conf file? 

A. It is used to configure where the C library looks for system information such as host names and user passwords. 

B. It is used to configure network protocol port numbers such as for HTTP or SMTP. 

C. It is used to configure LDAP authentication services for the local system. 

D. It is used to configure which network services will be turned on during the next system boot. 

Answer:


Q3. - (Topic 4) 

Which of the following is observed and corrected by a NTP client? 

A. The skew in time between the system clock and the hardware clock. 

B. The skew in time between the system clock and the reference clock. 

C. Changes in the time zone of the current computer's location. 

D. Adjustments needed to support Daylight Saving Time. 

Answer:


Q4. - (Topic 3) 

Which of the following files assigns a user to its primary group? 

A. /etc/pgroup 

B. /etc/shadow 

C. /etc/group 

D. /etc/passwd 

E. /etc/gshadow 

Answer:


Q5. - (Topic 3) 

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers) 

A. Year 

B. Minute 

C. Username 

D. Command 

Answer: B,D 


Q6. - (Topic 5) 

Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query? 

A. dnsq 

B. dig 

C. hostname 

D. dnslookup 

E. zoneinfo 

Answer:


Q7. - (Topic 4) 

Why is the correct configuration of a system's time zone important? 

A. Because the conversion of Unix timestamps to local time relies on the time zone configuration. 

B. Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created. 

C. Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone. 

D. Because NTP chooses servers nearby based on the configured time zone. 

Answer:


Q8. - (Topic 1) 

Which of the following commands lists all defined variables and functions within Bash? 

A. env 

B. set 

C. env -a 

D. echo $ENV 

Answer:


Q9. CORRECT TEXT - (Topic 3) 

Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.) 

Answer: TZ 


Q10. - (Topic 3) 

To prevent a specific user from scheduling tasks with at, what should the administrator do? 

A. Add the specific user to /etc/at.allow file. 

B. Add the specific user to [deny] section in the /etc/atd.conf file. 

C. Add the specific user to /etc/at.deny file. 

D. Add the specific user to nojobs group. 

E. Run the following: atd --deny [user]. 

Answer: