LX0-104 Premium Bundle

LX0-104 Premium Bundle

CompTIA Linux+ [Powered by LPI] - Exam 2 Certification Exam

4.5 
(35955 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
January 4, 2025Last update

CompTIA LX0-104 Free Practice Questions

Q1. - (Topic 3) 

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.) 

A. The user bob is removed from the system's user database. 

B. The user bob's home directory is removed. 

C. The locate database is updated to drop files owned by bob. 

D. All files owned by bob are remove from all mounted filesystems. 

E. In case bob was the last member of a group, that group is deleted. 

Answer: A,B 

Q2. CORRECT TEXT - (Topic 6) 

What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.) 

Answer:

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

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

Q5. 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 

Q6. - (Topic 4) 

What is true regarding the file ~/.forward? 

A. As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command. 

B. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes. 

C. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses. 

D. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient. 

Answer:

Q7. - (Topic 3) 

Where are user specific crontabs stored? 

A. In the database file /etc/crontab.db which is shared by all users. 

B. As individual per-user files within /var/spool/cron. 

C. As individual per-user files in /etc/cron.user.d. 

D. In the .crontab file in the user's home directory. 

E. In the file /var/cron/user-crontab which is shared by all users. 

Answer:

Q8. - (Topic 5) 

What is true regarding TCP port 23? 

A. Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used. 

B. Port 23 is the well known port for the SSH service which provides secure logins. 

C. Port 23 is the well known port for the rlogin service which is SSL secured by default. 

D. Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell. 

Answer:

Q9. CORRECT TEXT - (Topic 4) 

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.) 

Answer: mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, sendmail, /usr/sbin/sendmail, /usr/lib/sendmail 

Q10. - (Topic 3) 

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)? 

A. export LANGUAGE="pt" 

B. export MESSAGE="pt" 

C. export UI_MESSAGES="pt" 

D. export LC_MESSAGES="pt" 

E. export ALL_MESSAGES="pt" 

Answer:

Q11. - (Topic 5) 

Which of the following programs can be used to determine the routing path to a given destination? 

A. dig 

B. netstat 

C. ping 

D. route 

E. traceroute 

Answer:

Q12. CORRECT TEXT - (Topic 3) 

In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.) 

Answer: /etc/cron.allow 

Q13. - (Topic 4) 

Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.) 

A. Synchronize the hardware and system clocks. 

B. Output date and time in different formats. 

C. Set the system clock. 

D. Set the hardware clock. 

E. Update the time via NTP. 

Answer: B,C 

Q14. - (Topic 3) 

Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow? 

A. * 

B. -

C. s 

D. x 

Answer:

Q15. - (Topic 4) 

What is true about the ntpdate command? 

A. It is the primary management command for the NTP time server. 

B. It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes,seconds). 

C. It queries one or more NTP time servers and adjusts the system time accordingly. 

D. It sends the local system time to one or many remote NTP time servers for redistribution. 

E. It can be used by any user to set the user clock independently of the system clock. 

Answer:

Q16. - (Topic 4) 

Which of the following commands is used to rotate, compress, and mail system logs? 

A. rotatelog 

B. striplog 

C. syslogd --rotate 

D. logrotate 

E. logger 

Answer:

Q17. - (Topic 3) 

In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true? 

A. Without additional configuration, no users may have user specific crontabs. 

B. Without additional configuration, all users may have user specific crontabs. 

C. The cron daemon will refuse to start and report missing files in the system's logfile. 

D. When a user creates a user specific crontab the system administrator must approve it explicitly. 

Answer:

START LX0-104 EXAM