Quiz 5
Which option, when used with the mount command, enables loopback mode so that an iso image can be mounted onto a directory? a. -o loop b. --mode l c. --option l d. --loop
--loop
The mkfs command can be issued with what switch in order to specify a filesystem type? a. -o b. -f c. -c d. -t
-t
Which device file below represents the first primary partition on the second PATA hard disk drive? a. /dev/hdb1 b. /dev/hdc2 c. /dev/hdc1 d. /dev/hda1
/dev/hdb1
What character device file represents the second serial port on a system (COM2)? a. /dev/ttyS1 b. /dev/tty2 c. /dev/tty1 d. /dev/ttyS0
/dev/ttyS1
What hex code is associated with a Linux swap type partition? a. 96 b. 83 c. 12 d. 82
82
Each device attached to a system can be represented by multiple device files.
False
In Linux, you are restricted to using only one type of filesystem on a system.
False
Volumes can contain a filesystem but they can't be mounted to directories within the Linux filesystem hierarchy.
False
When you insert a DVD while in a GUI environment, it is automatically mounted by the system to a directory underneath the /media directory that is named for the label on the DVD.
True
A device that transfers data in a character-by-character fashion is referred to as what type of device? a. text b. binary c. block d. character
character
Which command below provides the easiest method for monitoring free space on mounted filesystems? - du - df - fs - fd
df
Select the command below that shows the size of a directory and its contents in kilobytes: - du - sizeof - df - dir
du
The quotas for certain users can be edited by using which command? - chquota - usrquota - repquota - edquota
edquota
Select the command that can be used to create partitions that will be stored in an MBR after installation: - fdisk - formatdisk - partition - format
fdisk
Errors on a filesystem are common on most filesystems. What do these errors indicate? a. filesystem corruption b. raid degradation c. hard drive failures d. filesystem breaks
filesystem corruption
What command can be used to check different kinds of filesystems on Linux for errors? - chkdsk. - errorchk - fs_check - fsck
fsck
What two commands below can be used to edit a GPT based hard disk's partitions? (Select 2 answers) - gdisk - parted - fdisk - gtpedit
gdisk, parted
Select the two commands in fdisk's interactive mode that can be used to show known partition types and view the current partition table: (Select 2 answers) a. l b. a c. p d. v
l, p
Select the commands that can be used to extend a volume group and logical volume respectively: (Select 2 answers) a. lvextend b. vgextend c. lvm_extend d. pgextend
lvextend, vgextend
Select the command that can be used to check an ext2, ext3, or ext4 filesystem: a. mke2fs b. ext2fsck c. fdisk d. e2fsck
mke2fs
Select the two commands below that can be used to prepare a swap partition and then enable it for use: (Select 2 answers) a. swapit b. mkswap c. swapon d. mkfs.swap
mkswap, swapon
To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used? a. mount -f b. mount -u c. mount -o d. mount -a
mount -a
What command below can be used to create a new physical volume? a. lvcreate b. pvdisk c. pvcreate d. new_pv
pvcreate
In what filesystem are most of the operating system files contained? a. boot b. data c. root d. mnt
root
In the event that you wish to disable a swap partition, what command must be used? a. umount b. swapoff c. swapdrop d. delete_swap
swapoff
Data is read from physical hard drives in concentric circles known as which of the following? a. blocks b. tracks c. sectors d. cylinders
tracks
The more filesystems that are used on a system, the less likely a corrupted filesystem will interfere with normal system operations.
true
What file system below is used by software programs that write to a CD-RW or DVD-RW drive? - udf - ntfs - hpfs - ext2
udf
What two commands can be used to show information about physical volumes and logical volumes respectively? (Select 2 answers) a. showvg b. showlv c. lvdisplay d. vgdisplay
vgdisplay, lvdisplay
In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit? - w - s - q - d
w