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

Q31. - (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:


Q32. - (Topic 3) 

Which of the following steps prevents a user from obtaining an interactive login session? 

A. Run the command chsh -s /bin/false with the user name. 

B. Set the UID for the user to 0. 

C. Remove the user from the group staff. 

D. Add the user to /etc/noaccess. 

E. Create a .nologin file in the user's home directory. 

Answer:


Q33. - (Topic 3) 

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays? 

A. 0 * * * 30 myscript 

B. 30 * * * 6 myscript 

C. 30 0 * * 0 myscript 

D. 30 0-23 * * 0 myscript 

E. 0 0-23 * * 30 myscript 

Answer:


Q34. - (Topic 3) 

Which file contains the date of the last change of a user's password? 

A. /etc/gshadow 

B. /etc/passwd 

C. /etc/pwdlog 

D. /etc/shadow 

E. /var/log/shadow 

Answer:


Q35. - (Topic 5) 

Which of the following details is NOT provided in any output from the netstat utility? 

A. broadcast services 

B. interface statistics 

C. masquerading connections 

D. network connections 

E. routing tables 

Answer:


Q36. - (Topic 5) 

Which of the following is true about IPv6? 

A. With IPv6, the TCP port numbers of most services have changed. 

B. IPv6 no longer supports broadcast addresses. 

C. IPv4 addresses can be used without any change with IPv6. 

D. IPv6 no longer supports multicast addresses. 

E. For IPv6, UDP and TCP have been replaced by the Rapid Transmission Protocol RTP. 

Answer:


Q37. - (Topic 2) 

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.) 

A. Start and prepare the desktop environment for the user. 

B. Configure additional devices like new monitors or projectors when they are attached. 

C. Handle the login of a user. 

D. Lock the screen when the user was inactive for a configurable amount of time. 

E. Create an X11 configuration file for the current graphic devices and monitors. 

Answer: A,C 


Q38. - (Topic 6) 

Which of the following commands can be used to limit the amount of memory a user may use? 

A. umask 

B. usermod 

C. ulimit 

D. passwd 

E. chage 

Answer:


Q39. - (Topic 5) 

What is true regarding a default route? 

A. The default route is always used first. When the default route is not available more specific routes are tried. 

B. When a default route is set, all other routes are disabled until the default route is deleted. 

C. The default route is only used if there is not a more specific route to a destination host or network. 

D. Without a default route, no network communication even in directly attached networks is possible. 

Answer:


Q40. CORRECT TEXT - (Topic 5) 

Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.) 

Answer: netstat, /bin/netstat, ss, /usr/bin/ss