Study guide for Final exam - quiz 5 review questions

¡Supera tus tareas y exámenes ahora con Quizwiz!

b. False

After a partition on a storage device is formatted with a filesystem, all partitions on that storage device must use the same filesystem. a. True b. False

c. Mount the filesystem and check the lost+found directory underneath the mount point.

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.

b. False

Character devices typically transfer data more quickly than block devices. a. True b. False

a. True

The lvextend command can be used to add unused space within a volume group to an existing logical volume. a. True b. False

b. displays the number of used and available inodes on each mounted filesystem

What does the command df -i do? a. displays mounted filesystems using human-readable size formats b. displays the number of used and available inodes on each mounted filesystem c. displays mounted filesystems interactively, line by line d. nothing; it is not a valid command

d. displays the total size of the /var directory

What does the du -hs /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

c. Unmount the filesystem.

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.

a. gdisk

Which of the following commands can only be used to create partitions on a GPT storage device? a. gdisk b. cfdisk c. fdisk d. parted

c. VGs are comprised of one or more PVs.

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.

d. all of them, as fsck is run automatically at boot for all filesystems

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command?/dev/sda1 /boot ext4 defaults 1 1/dev/sda2 swap swap defaults 1 0/dev/sda3 / ext4 defaults 0 1/dev/sda4 /var ext4 defaults 1 0/dev/sda1 /home ext4 defaults 0 1/dev/sr0 /media/dvd iso9660 noauto,ro 0 0 a. none, as fsck must be run manually for each filesystem b. /, swap, and /var c. /, /boot, and /home d. all of them, as fsck is run automatically at boot for all filesystems

d. xfs_repair /dev/sdb1

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. df

Which command is used to display the amount of free space that exists on a filesystem? a. fsck b. quota c. du d. df

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

Jaime 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 the 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

a. e2mkfs -t ext4 device

Which command is used to format a partition on a hard disk drive with the ext4 filesystem? a. e2mkfs -t ext4 device b. makeext4FS device c. format_ext4 device d. ext4mkfs device

b. mount -a

Which command mounts all existing filesystems in /etc/fstab? a. mount -f b. mount -a c. mount /etc/fstab d. mount /etc/mtab

d. Hard limits can never be exceeded. g. Soft limits allow a user to exceed them for a certain period of time.

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.

b. has no data section c. displays a major and minor number in place of a file size

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 KB

d. /dev/sdc1

You plug a USB flash drive into a system that has two SATA hard disk drives. How will the partition on this USB flash drive be identified by Linux? a. /dev/sda1 b. /dev/sda2 c. /dev/sdb1 d. /dev/sdc1

c. Unmount the device from the directory.

A user mounts a device to a mount point directory and realizes afterward they need 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 files. e. Look in the lost+found directory for the files.

b. df -hT c. cat /etc/mtab

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 -hT c. cat /etc/mtab d. ls /sys/block


Conjuntos de estudio relacionados

Ancient History Ch. 36 & 37 Study Guide

View Set

Chapter 8 Social Studies Study Guide

View Set

Module 18 - What is eLearning and what are its benefits

View Set