CompTIA Linux+ (LX0-102) Practice Questions

Question 1
While using the BASH, which of the following commands will switch the default display in such a way that new applications will appear on the remote machine 192.168.1.50?

A. display 192.168.1.50
B. export DISPLAY=192.168.1.50
C. export TARGET=192.168.1.50
D. switch 192.168.1.50


Question 2
Which of the following commands will display a user’s current environment variables? (Select TWO)

A. env
B. info env
C. displayenv
D. man env
E. printenv


Question 3
Which of the following is the default location of the Xorg configuration file?

A. /etc/X11/xorg.conf
B. /etc/X11/X.conf
C. /etc/X/xorg.conf
D. /etc/Xorg/X.conf


Question 4
Which of the following commands will explicitly start a full X windows system session?

A. startx
B. xinit
C. X
D. startX


Question 5
After installing and enabling the latest accelerated video card driver, the system fails to start the X Window System on a reboot. Which of the following drivers is MOST likely to allow the system to start the GUI?

A. vesa
B. vega
C. xorg
D. krfb


Question 6
Which of the following commands will cause gedit to use workstation1 for I/O?

A. DISPLAY=workstation1 gedit
B. CONNECT=workstation1 gedit
C. GRAPHICS=workstation1 gedit
D. CONSOLE=workstation1 gedit


Question 7
Which of the following commands will show status information of the print queues?

A. lpstatus
B. showprint
C. lpqueue
D. lpstat


Question 8
Where is the default location of sendmail binary?

A. /usr/lib/sendmail
B. /etc/mail/sendmail
C. /var/spool/sendmail
D. /sbin/sendmail


Question 9
Which of the following files holds information on the system’s time zone?

A. /etc/timezone
B. /etc/localtime
C. /etc/time
D. /etc/localzone


Question 10
Which of the following commands will show active network connections?
A. ipstat
B. ifstat
C. netstat
D. networkstat

Linux+ 102 Answer Key

Question 1) B. export DISPLAY=192.168.1.50

Question 2) A. env & E. printenv

Question 3) A. /etc/X11/xorg.conf

Question 4) A. startx

Question 5) A. vesa

Question 6) A. DISPLAY=workstation1 gedit

Question 7) D. lpstat

Question 8) A. /usr/lib/sendmail

Question 9) B. /etc/localtime

Question 10) C. netstat