Linux Chapter 5-8 (Exam 2)

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

John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn't eject the disk. Which of the following commands should he run?

- umount /media/cdrom - eject /media/cdrom

Which of the following statements are true?

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

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?

- Run the partprobe command. - Reboot the system.

You want to see the filesystems that are in use on the system. What command could you use?

- df -T - cat /etc/mtab

Which of the following can be used to show the block devices on a Linux system?

- ls /sys/block - lsblk

Which of the following commands can be used to create and activate a swap partition on a Linux system?

- mkswap /dev/sda6 - swapon /dev/sda6

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command?

/, /proc, and swap

Which of the following is required as a separate partition in order to use LVM?

/boot

Which file should be configured so that quotas are enabled at boot time?

/etc/fstab

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

True

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

Which of the following commands will display a summarization of quotas for a filesystem?

repquota

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?

lsblk

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?

xfs_fsr

Which of the following can be used to mount a filesystem?

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

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?

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

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

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

/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

Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem is created on a device that is used by the fsck utility?

/lost+found/

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

2TB

True or False. After a partition on a hard disk is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem.

False

What does the du -s /var command do?

Displays the total size of the /var directory.

What does the command dumpe2fs -h do?

Dumps an ext2 filesystem.

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

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.

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 of the following commands can be used to display the filesystem and partition UUIDs on a Linux system?

blkid

A device file _______________________.

displays a major and minor number in place of a file size

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

df

Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results?

du

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

e2mkfs -t ext4 device

The quotas for certain users can be edited by using which command?

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?

ext2

What command can be used to check different kinds of filesystems on Linux for errors?

fsck

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

gdisk

Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a 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

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

mount -a

Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files?

quotacheck

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

Which command can be used to repair an XFS filesystem?

xfs_repair /dev/sdb1


Conjuntos de estudio relacionados

Barron's 1100 Words You Need To Know Week 9

View Set

ACCT 3210: Chapter 10 Preview. PP&E and Intangible Assets: Acquisition

View Set

Your Money and Credit-Test One-Morris

View Set