Leads4pass > CompTIA > CompTIA Linux+ > LX0-102 > LX0-102 Online Practice Questions and Answers

LX0-102 Online Practice Questions and Answers

Questions 4

To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?

A. unset -v FOOBAR

B. set -a FOOBAR=""

C. env -u FOOBAR myscript

D. env -i FOOBAR myscript

Buy Now
Questions 5

In xorg.conf, which of the following sections is concerned with fonts?

A. The Fonts section

B. The Files section

C. The xfsCodes section

D. The Graphics section

E. The modeline section

Buy Now
Questions 6

A senior executive asked an administrator to change the default background of the executive machine, which uses XDM. Which of the following filesA senior executive asked an administrator to change the default background of the executive? machine, which uses XDM. Which of the following files would the administrator edit to achieve this?

A. /etc/X11/xdm/Xsetup

B. /etc/X11/xdm.conf

C. /etc/X11/xdm/Defaults

D. /etc/X11/defaults.conf

Buy Now
Questions 7

Identify the statement that would create a default route using a gateway of 192.168.1.1.

A. netstat -add default gw 192.168.1.1

B. route add default gw 192.168.1.1

C. ip route default 192.168.1.1

D. route default gw 192.168.1.1

E. ifconfig default gw 192.168.1.1 eth0

Buy Now
Questions 8

The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:

A. * 3, 4, 5 1 * * chklog

B. 3 3, 4, 5 1 * * chklog

C. 3 15, 16, 17 * * * chklog

D. 0 15, 16, 17 1 * * chklog

E. * 15, 16, 17 1 * * chklog

Buy Now
Questions 9

A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file).

Buy Now
Questions 10

What is the command to delete the default gateway from the system IP routing table? (Please specify the complete command with arguments, please no duplicate answers in this field.)

Buy Now
Questions 11

An administrator wants to temporarily prevent users from logging in. Please complete the following commanD. touch /etc/______

Buy Now
Questions 12

An ISP has given an administrator an IP block for use. The block is 192.168.112.64/26. If the administrator uses the first usable IP for the router that is installed on the network, how many usable IPs are left? (Please enter the number and not a word)

Buy Now
Questions 13

An administrator can run the ________ command to see active network and UNIX domain socket connections as well as other open files. (Please specify the command with no path information, options or parameters)

Buy Now
Exam Code: LX0-102
Exam Name: CompTIA Linux+ [Powered by LPI] Exam 2
Last Update: Jun 14, 2026
Questions: 177
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99