CompTIA Linux+ (LX0-101) Practice Questions

Question 1
A user has inserted a USB drive but it has not been automatically mounted. Which of the following commands will show the device name of the USB drive?

A. mount -t usb
B. fdisk -l
C. usb_scan
D. partprobe


Question 2
Which of the following will burn an ISO image to a writable SCSI CD-ROM drive located on SCSI address 0,1,0?

A. cdrecord -v -eject dev=0,1,0 data.iso
B. cdrecord -t scsi -eject -d=0,1,0 data.iso
C. cdrecord dev=0,1,0 -t=data.iso
D. cdrecord -V -dev 0,1,0 -eject data.iso


Question 3
Which of the following /etc/fstab entries represents a Read-Write file system that can be mounted by any user?

A. /dev/hdc1   /data    ext3   noauto,users   0 0
B. /dev/hdc1   /data   auto   defaults   0 0
C. /dev/hdc1   /data    auto   noauto,user   0 0
D. /dev/hdc1   /data    ext3   defaults   0 0


Question 4
A technician wants to upgrade an existing package to a new software package called software.rpm. Which of the following commands will accomplish this?

A. rpm -el ./software.rpm
B. rpm -Ve ./software.rpm
C. rpm -ieh ./software.rpm
D. rpm -Uvh ./software.rpm


Question 5
Which of the following is the correct way to upgrade an existing software package using yum?

A. yum new package
B. yum get package
C. yum retrieve package
D. yum update package


Question 6
Which of the following key commands in vi allows a technician to append to the current line?

A. A
B. aa
C. p
D. a


Question 7
Which of the following commands will replace the first instance of the string “linux” to “Linux” in the text file called history.txt and outputs the results to standard output?

A. sed r/linux/Linux/ history.txt
B. sed g/linux/Linux/ history.txt
C. sed s/linux/Linux/ history.txt
D. sed w/linux/Linux/ history.txt


Question 8
Which of the following symbols redirects standard output?

A. <
B. =
C. &
D. >


Question 9
Which of the following commands will allow an administrator to change the priority of a running process?

A. bg
B. pstree
C. renice
D. fg


Question 10
Which of the following is the BEST way to direct the standard output of a program to both the screen and a file at the same time?

A. cat
B. tee
C. redirection (>)
D. echo

Linux+ 101 Answer Key

Question 1) B. fdisk -l

Question 2) A. cdrecord -v -eject dev=0,1,0 data.iso

Question 3) A. /dev/hdc1 /data ext3 noauto,users 0 0

Question 4) D. rpm -Uvh ./software.rpm

Question 5) D. yum update package

Question 6) A. A

Question 7) C. sed s/linux/Linux/ history.txt

Question 8) D. >

Question 9) C. renice

Question 10) B. tee