Ch5: Linux Filesystem Administration: Multiple Choice

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

Which of the following statements regarding LVM structure is correct?

VGs are comprised of one or more PVs.

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.

c

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.

c e f

Which command is used to display the amount of free space that exists on a filesystem?

df

Which command can be used to repair an XFS filesystem?

xfs_repair /dev/sdb1

Which command is used to format a partition on a hard disk drive with the ext4 filesystem?

e2mkfs -t ext4 device

Which of the following commands can only be used to create partitions on a GPT storage device?

gdisk

Which command mounts all existing filesystems in /etc/fstab?

mount -a

Character devices typically transfer data more quickly than block devices.

False

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

True

What does the du -hs /var command do?

displays the total size of the /var directory

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

b c

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?

/dev/sdc1

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 d g

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

false

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

b

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

b c

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

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? 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

c


Kaugnay na mga set ng pag-aaral

History finally exam chapters 9-15

View Set

Penn Foster Veterinary Assistant- Handling and Restraint

View Set

Anatomy and physiology critical thinking questions

View Set

Chapter 12 - Mastering Biology Questions :()))

View Set

Leçon 0: Que savez-vous de la France?

View Set

Slacken, Apparatus, Immense, Tumultuously, Resilient, Savor, Stun, Analyze, Evidence, Impact, Prop, Smirk, Relentless, Narrative, Grind.

View Set