NOS-120 CHAPTER 5
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
c. /dev/sdb3
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
c. print
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
c. umount
If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size? a. 256GB b. 512GB c. 1TB d. 2TB
d. 2TB
Which command is used to display the amount of free space that exists on a filesystem? a. fsck b. quota c. du d. df
d. df
What does the du -s /var command do? a. shows the users connected to the /var directory b. shows the size of all directories within the /var directory c. dumps the /var directory d. displays the total size of the /var directory
d. displays the total size of the /var directory
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
a. Run the parted command d. Reboot the system
The lvextend command can be used to add unused space within a volume group to an existing logical volume. True or False? a. True b. False
a. True
Which of the following commands can only be used to create partitions on a GPT hard disk? a. gdisk b. cfdisk c. fdisk d. parted
a. gdisk
Which command mounts all existing filesystems in /etc/fstab? a. mount -f b. mount -a c. mount /etc/fstab d. mount /etc/mtab
b. mount -a
What must you do to successfully run the fsck command on a filesystem? a. Run the fsck command with the -u option to automatically unmount the filesystem first. b. Choose yes when warned that running fsck on a mounted filesystem can cause damage. c. Unmount the filesystem. d. Ensure that the filesystem is mounted.
c. Unmount the filesystem.
You plug a USB flash memory drive into a system that has two SATA hard disks. How will the partition on this USB flash memory drive be identified by Linux? a. /dev/sda1 b. /dev/sda2 c. /dev/sdb1 d. /dev/sdc1
d. /dev/sdc1
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
d. /etc/fstab
Which command can be used to repair an XFS filesystem? a. fsck -t xfs /dev/sdb1 b. e2fsck /dev/sdb1 c. fsck.xfs /dev/sdb1 d. xfs_repair /dev/sdb1
d. xfs_repair /dev/sdb1
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
b. -i 14d
After a partition on a hard disk is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem. True or False? a. True b. False
b. False
Character devices typically transfer data more quickly than block devices. True or False? a. True b. False
b. False
You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.) a. cat /etc/fstab b. df -T c. cat /etc/mtab d. ls /sys/block
b. df -T c. cat /etc/mtab
What does the command dumpe2fs -h do? a. backs up an ext2 filesystem b. displays the number of used and available inodes for an ext2/ext3/ext4 filesystem c. dumps an ext2 filesystem d. nothing; it is not a valid command
b. displays the number of used and available inodes for an ext2/ext3/ext4 filesystem
A device file _______________________. (Choose all that apply.) a. has no inode section b. has no data section c. displays a major and minor number in place of a file size d. has a fixed size of 300 kilobytes
b. has no data section c. displays a major and minor number in place of a file size
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. mkfs exfat /dev/sdb1 c. mkexfatfs /dev/sdb1 d. mke2fs.exfat /dev/sdb1
b. mkfs exfat /dev/sdb1
Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command?/dev/sda1 / ext4 defaults 1 1none /dev/pts devpts gid=5,mode=620 1 0none /proc proc defaults 0 1none /dev/shm tmpfs defaults 1 0/dev/sdc2 swap swap defaults 0 1/dev/dvd /media/dvd iso9660 noauto,ro 0 0 a. none, as fsck must be run manually for each filesystem b. /, /dev/pts, and /dev/shm c. /, /proc, and swap d. all of them, as fsck is run automatically at boot for all filesystems
c. /, /proc, and swap
Jim has just installed two new SAS SSDs in his system. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? (Choose all that apply.) a. Mount the two SSDs so they are accessible by the operating system. b. Mount a filesystem to each of SSDs. c. Create one or more partitions on each of the SSDs. d. Use the vi editor to edit /etc/mtab and create an entry for the SSDs. e. Mount any partitions created on the two SSDs such that they are accessible by the operating system. f. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.
c. Create one or more partitions on each of the SSDs. e. Mount any partitions created on the two SSDs such that they are accessible by the operating system. f. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.
A user runs the fsck command with the -f option on an ext4 filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair? a. Look in the root of the filesystem. b. The system prompts the user for a target location when it comes across a file it cannot repair. c. Mount the filesystem and check the lost+found directory underneath the mount point. d. View the contents of the directory /lost+found.
c. Mount the filesystem and check the lost+found directory underneath the mount point.
Which of the following statements are true? (Choose all that apply.) a. Quotas can only limit user space. b. Quotas can only limit the number of files a user can own. c. Quotas can limit both user space and the number of files a user can own. d. Hard limits can never be exceeded. e. Hard limits allow a user to exceed them for a certain period of time. f. Soft limits can never be exceeded. g. Soft limits allow a user to exceed them for a certain period of time. h. Either a hard limit or a soft limit can be set, but not both concurrently.
c. Quotas can limit both user space and the number of files a user can own. d. Hard limits can never be exceeded. g. Soft limits allow a user to exceed them for a certain period of time.
A user mounts a device to a mount point directory and realizes afterward she needs files previously found within the mount point directory. What should this user do? a. Nothing; the files are lost and cannot ever be accessed. b. Nothing; the files could not have been there because you can only mount to empty directories. c. Unmount the device from the directory. d. Run the fsck command to recover the file. e. Look in the lost+found directory for the file.
c. Unmount the device from the directory.
Which of the following statements regarding LVM structure is correct? a. PVs are collections of VGs b. LVs are created from the free space available within PVs c. VGs are comprised of one or more PVs d. PVs use the space within LVs to create VGs
c. VGs are comprised of one or more PVs
Which command is used to format a partition on a hard disk drive with the ext4 filesystem? a. format_ext4 device b. ext4mkfs device c. e2mkfs -t ext4 device d. makeext4FS device
c. e2mkfs -t ext4 device