UNIX Ch 5
Which of the following is required as a separate partition in order to use LVM? a. /home b. /tmp c. /var d. /boot
/boot
Which file should be configured so that quotas are enabled at boot time? a. /etc/edquota b. /etc/fsq c. /etc/fstab d. /etc/quotas
/etc/fstab
If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size? a. 512GB b. 2TB c. 1TB d. 256GB
2TB
Which of the following commands will display a summarization of quotas for a filesystem? a. quota --list b. quotaprint c. quotadisplay d. repquota
repquota
Which of the following can be used to show the block devices on a Linux system? (Choose two.) a. cat /proc/block b. ls /sys/block c. ls /etc/block d. lsblk
ls /sys/block lsblk
Which of the following commands can be used to show the block devices, including their major and minor numbers, on a system which are located in the /sys/block directory? a. lsblk b. ls -al /sys/block c. cat /sys/block d. lsblock
lsblk
Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem? a. fsck b. xfs_db c. xfs_fsr d. defrag
xfs_fsr
Which of the following can be used to mount a filesystem? (Choose all that apply.) a. A filesystem label b. A device path such as /dev/sdb2 c. A filesystem UUID d. A filesystem nickname configured in /etc/mtab
- A filesystem label - A device path such as /dev/sdb2 - A filesystem UUID
Callie wants to make sure that a filesystem is checked every 20 days. Which of the following options, when used with the tune2fs command, would set a full filesystem check to run every 14 days? a. -i 336 b. -i 14d c. -d 14 d. -i 14
-i 14d
Jackson wants to automatically mount a secondary internal hard drive when his Linux workstation boots up. In which of the following files should he configure an entry for the partition on the drive that he wants to mount? a. /etc/mtab b. /etc/ftab c. /etc/fstab d. /etc/crontab
/etc/fstab
Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem is created on a device that is used by the fsck utility? a./var/tmp/ b./lost+found/ c./var/crash/ d./proc/tmp/
/lost+found/
Aria has modified the hard disk that hosts the operating system by using the fdisk command. The fdisk command indicates that the new partition information must be manually reloaded. Which of the following should she do next? (Choose two. Either answer is independently correct.) a. Run the parted command b. Reboot the system c. Run the partprobe command d. Run the cfdisk program
Reboot the system Run the partprobe command
Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system? a. e2label b. showpart c. fatlabel d. blkid
blkid
Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results? a. du b. ls -al c. fdisk --list d. df
du
The quotas for certain users can be edited by using which command? a. edquota b. usrquota c. chquota d. repquota
edquota
John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn't eject the disk. Which of the following commands should he run? (Choose all that apply.) a. eject /media/cdrom b. umount /media/cdrom c. unmount /media/cdrom d. detach /media/cdrom
eject /media/cdrom umount /media/cdrom
If the mkfs command is executed to create a filesystem and only the block device name is specified, which of the following filesystems will be created? a.ext4 b.ext2 c.exFAT d.ext3
ext2
What command can be used to check different kinds of filesystems on Linux for errors? a. fs_check b. fsck c. chkdsk d. errorchk
fsck
Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk? a. cfdisk b. gfdisk c. iconv d. gdisk
gdisk
Which of the following commands cannot be used to create an exFAT filesystem on a USB thumb drive that is recognized as /dev/sdb? a. mkfs.exfat /dev/sdb1 b. mkexfatfs /dev/sdb1 c. mke2fs.exfat /dev/sdb1 d. mkfs exfat /dev/sdb1
mkfs exfat /dev/sdb1
Which of the following commands can be used to create and activate a swap partition on a Linux system? (Each answer represents part of the whole.) a. mkswap /dev/sda6 b. swapon /dev/sda6 c. mke2swap -on /dev/sda6 d. mke2swap /dev/sda6 e. mkeswap /dev/sda6 f. makeswap /dev/sda6 g. mkswap -on /dev/sda6
mkswap /dev/sda6 swapon /dev/sda6
Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files? a. chkquota b. quotacheck c. edquota d. quota
quotacheck
Elijah is done working with an external USB hard drive and wants to properly disconnect it. Which of the following commands should he use before unplugging the USB cable? a. umount b. disable c. unmount d. mount --eject
umount