Mod 05 Linux Filesystem Administration

Ace your homework & exams now with Quizwiz!

Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system? a. e2label b. blkid c. fatlabel d. showpart

blkid

Which of the following commands produce many pages of results when run from the "/" directory? a. fdisk --list b. ls -al c. df d. du

du

The quotas for certain users can be edited by using which command? a. edquota b. chquota c. usrquota d. repquota

edquota

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. exFAT b. ext2 c. ext3 d. ext4

ext2

Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk? a. gdisk b. cfdisk c. gfdisk d. iconv

gdisk

Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem is created on a device? a. crash b. tmp c. lost+found d. proc

lost+found

Which of the following can be used to show the block devices on a Linux system? (Choose two.) a. ls /sys/block b. cat /proc/block c. lsblk d. ls /etc/block

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. cat /sys/block c. ls -al /sys/block d. lsblock

lsblk

Which command can be used to create a logical volume called data1 from 80TB of available space within the storage1 volume group? a. lvcreate −L 80TB −n storage1 data1 b. lvextend +80TB storage1 data1 c. lvcreate −L 80TB −n data1 storage1 d. lvextend +80TB data1 storage1

lvcreate −L 80TB −n data1 storage1

Which of the following commands can be used to create an exFAT filesystem on a USB thumb drive that is recognized as /dev/sdb? (Choose all that apply.) a. mkfs.exfat /dev/sdb1 b. mkfs exfat /dev/sdb1 c. mkexfatfs /dev/sdb1 d. mke2fs.exfat /dev/sdb1

mkfs.exfat /dev/sdb1 mkexfatfs /dev/sdb1

Which of the following commands can be used to create an ISO image from the contents of the /backups directory? a. mkfs −t iso9660 −n image.iso /backups/* b. mkfs −t udf −n image.iso /backups/* c. mkisofs −RJ −o image.iso /backups/* d. isoimage --create image.iso /backups/*

mkisofs −RJ −o image.iso /backups/*

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. mke2swap /dev/sda6 c. mkswap −on /dev/sda6 d. swapon /dev/sda6

mkswap /dev/sda6 swapon /dev/sda6

Clint has run the command parted /dev/sdb and wants to display a list of the existing partitions that exist on that drive. Which of the following commands can he use to display the existing partitions? a. disp b. list c. print d. display

print

Which two commands can be used to add the /dev/nvme3n1p1 partition to the existing storage1 volume group? (Choose two.) a. pvcreate /dev/nvme3n1p1 b. vgcreate /dev/nvme3n1p1 c. vgextend storage1 /dev/nvme3n1p1 d. lvextend storage1 /dev/nvme3n1p1

pvcreate /dev/nvme3n1p1 vgextend storage1 /dev/nvme3n1p1

Which of the following commands can be used to scan a filesystem for disk usage, as well as create, check, and repair quota files? a. quota b. edquota c. chkquota d. quotacheck

quotacheck

Which of the following commands can be used to list detailed information for a hardware device on the system? a. lsblk /dev/sdb1 b. udevadm info /dev/sdb1 c. blkid /dev/sdb1 d. cat /dev/sdb1

udevadm info /dev/sdb1

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. unmount b. disable c. umount d. mount --eject

umount

After using the DVD drive on his Linux computer, John pushes the eject button on the front of the drive but it doesn't eject the DVD. Which of the following commands should he run? (Choose all that apply.) a. unmount /dev/sr0 b. umount /dev/sr0 c. eject /dev/sr0 d. detach /dev/sr0

umount /dev/sr0 eject /dev/sr0

Which of the following filesystems would most likely be used for the root filesystem on a modern Linux system? (Choose all that apply.) a. xfs b. exfat c. ext4 d. ext2

xfs ext4

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. defrag b. xfs_fsr c. fsck d. xfs_db

xfs_fsr

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 14 b. −i 14d c. −d 14 d. −i 336

−i 14d

Which of the following is required as a separate partition in order to use LVM? a. /var b. /boot c. /tmp d. /home

/boot

Which of the following are block device files? (Choose all that apply.) a. /dev/nvme0 b. /dev/zero c. /dev/tty1 d. /dev/zram0

/dev/nvme0 /dev/zram0

Which of the following would be the device file for the third partition on the second SATA drive on a Linux system? a. /dev/hdb3 b. /dev/hdc2 c. /dev/sdb3 d. /dev/sdc2

/dev/sdb3

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/ftab b. /etc/crontab c. /etc/mtab d. /etc/fstab

/etc/fstab

Sharon has inserted a USB flash drive into her Linux workstation while using the GNOME desktop environment. After opening a Terminal app, what directory can she change to in order to access the contents of the filesystem on the USB flash drive if the drive is labeled as BACKUPS? a. /media/BACKUPS b. /mnt/BACKUPS c. /home/sharon/BACKUPS d. /run/media/sharon/BACKUPS

/run/media/sharon/BACKUPS

Which of the following can be used to specify a filesystem to mount in /etc/fstab? (Choose all that apply.) a. A device path such as /dev/sdb2 b. A filesystem UUID c. A filesystem label d. A filesystem nickname configured in /etc/mtab

A device path such as /dev/sdb2 A filesystem UUID A filesystem label

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. Run the partprobe command. c. Run the cfdisk program. d. Reboot the system.

Run the partprobe command. Reboot the system.


Related study sets

Hazmat - Will Carry - Provisions for Passengers and Crew

View Set