Linux Filesystem Administration (review questions) - [LINUX System Administration]

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

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?

-i 14d (To set the interval to 14 days, you need to use the -i option and specify 14d as the interval.)

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? /dev/sda1 / ext4 defaults 1 1 none /dev/pts devpts gid=5,mode=620 1 0 none /proc proc defaults 0 1 none /dev/shm tmpfs defaults 1 0 /dev/sdc2 swap swap defaults 0 1 /dev/dvd /media/dvd iso9660 noauto,ro 0 0

/, /proc, and swap

Which of the following would be the device file for the third partition on the second SATA drive on a Linux system?

/dev/sdb3 (SATA devices start with sd. The second SATA drive is sdb, which should be followed by the partition number of 3 for /dev/sdb3.)

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?

/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?

/etc/fstab (Partitions that should be mounted at boot time should be configured in the /etc/fstab file.)

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

1. Create one or more partitions on each of the SSDs. 2. Mount any partitions created on the two SSDs such that they are accessible by the operating system. 3. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.

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

1. Run the partprobe command 2. Reboot the system (1. The partprobe command will reload the MBR information into memory. 2. Rebooting the system is the most reliable way of making sure the MBR is reloaded into memory.)

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.

1. c. Quotas can limit both user space and the number of files a user can own. 2. d. Hard limits can never be exceeded. 3. g. Soft limits allow a user to exceed them for a certain period of time.

You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.)

1. df -T 2. cat /etc/mtab

A device file _______________________. (Choose all that apply.)

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

If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size?

2TB (The maximum size of a logical volume is 2TB when the PE, or physical extent, is set to 32 MB.)

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?

False

Character devices typically transfer data more quickly than block devices. True or False?

False

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?

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

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

True

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?

Unmount the device from the directory.

What must you do to successfully run the fsck command on a filesystem?

Unmount the filesystem.

Which of the following statements regarding LVM structure is correct?

VGs are comprised of one or more PVs

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

df

What does the command dumpe2fs -h do?

displays the number of used and available inodes for an ext2/ext3/ext4 filesystem

What does the du -s /var command do?

displays the total size of the /var directory

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 hard disk?

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?

mkfs exfat /dev/sdb1 (The mkfs command would need the -t option specified before the exfat parameter in order to create an exFAT filesystem.)

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

mount -a

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?

print (The print command while in the parted utility will display a list of existing partitions on a hard drive.)

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?

umount (The umount command can be used to unmount a filesystem.)

Which command can be used to repair an XFS filesystem?

xfs_repair /dev/sdb1


Conjuntos de estudio relacionados

Respiratory NCLEX Questions Asthma and More

View Set

Testbank Questions: The Impact of Artificial Intelligence

View Set

Chapter 5 : Autonomic nervous system

View Set

3. Membrane and Action Potentials

View Set

Chest Trauma and Thoracic Injuries (Lewis 9th edition)

View Set