LX0-104 Premium Bundle

LX0-104 Premium Bundle

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

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

CompTIA LX0-104 Free Practice Questions

Q1. - (Topic 1) 

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only? 

A. unset -v FOOBAR;./myscript 

B. set -a FOOBAR="";./myscript 

C. env -u FOOBAR./myscript 

D. env -i FOOBAR./myscript 

Answer:

Q2. - (Topic 4) 

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line? 

A. lpd 

B. lpp 

C. lpq 

D. lpr 

Answer:

Q3. CORRECT TEXT - (Topic 6) 

In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service? 

Answer: bind, interface 

Q4. - (Topic 3) 

What is NOT contained in the locale setting of the operating system? 

A. currency symbol 

B. language 

C. timezone 

D. thousands separator 

Answer:

Q5. CORRECT TEXT - (Topic 4) 

After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue? (Specify ONLY the command without any path or parameters.) 

Answer: lpq, /usr/bin/lpq, lpstat, /usr/bin/lpstat 

Q6. - (Topic 3) 

Which of the following commands can remove a user from a group? 

A. grouprm 

B. groupmod 

C. passwd 

D. usergroups 

E. usermod 

Answer:

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

Q8. - (Topic 2) 

The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section? 

A. It is placed in curly brackets as in Section SectionName { ... }. 

B. It is placed between a line containing Section "SectionName" and a line containing EndSection. 

C. It is placed between the tags <Section name="SectionName"> and </Section> 

D. It is placed after the row [SectionName]. 

E. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character. 

Answer:

Q9. CORRECT TEXT - (Topic 4) 

Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.) 

Answer: server 

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

Q11. CORRECT TEXT - (Topic 5) 

How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.) 

Answer: 14 

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

Q13. - (Topic 2) 

Which of the following commands shows the current color depth of the X Server? 

A. xcd 

B. xcdepth 

C. xwininfo 

D. xcolordepth 

E. cat /etc/X11 

Answer:

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

Q15. - (Topic 6) 

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services? 

A. tcpd 

B. inetd 

C. fingerd 

D. mountd 

E. xinetd 

Answer:

Q16. CORRECT TEXT - (Topic 1) 

What command displays all aliases defined in the current shell? (Specify the command without any path information) 

Answer: alias, alias -p 

Q17. - (Topic 1) 

What is the purpose of the file /etc/profile? 

A. It contains the welcome message that is displayed after login. 

B. It contains security profiles defining which users are allowed to log in. 

C. It contains environment variables that are set when a user logs in. 

D. It contains default application profiles for users that run an application for the first time. 

Answer:

START LX0-104 EXAM