CompTIA Linux+ (LX0-101) Practice Questions
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
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
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
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
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
Which of the following key commands in vi allows a technician to append to the current line?
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
Which of the following symbols redirects standard output?
Which of the following commands will allow an administrator to change the priority of a running process?
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?
C. redirection (>)