linux ch5 comp & rev quiz

Ace your homework & exams now with Quizwiz!

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/sda1 -/dev/sda2 -/dev/sdb1 -/dev/sdc1

/dev/sdc1

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

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

True

What does the du -s /var command do? -shows the users connected to the /var directory -shows the size of all directories within the /var directory -dumps the /var directory -displays the total size of the /var directory

displays the total size of the /var directory

Which of the following commands can only be used to create partitions on a GPT hard disk? -gdisk -cfdisk -fdisk -parted

gdisk

Which of the following statements regarding LVM structure is correct? -PVs are collections of VGs -LVs are created from the free space available within PVs -VGs are comprised of one or more PVs -PVs use the space within LVs to create VGs

-VGs are comprised of one or more PVs

How do you find out which filesystem the root partition uses? (Select two) -df -T -ls -l / -cat /etc/fstab -fstype

-df -T -cat /etc/fstab

Which command do you use to display the total disk space consumed under /home/user1? -du /home/user1 -du -T /home/user1 -du -h /home/user1 -du -s /home/user1

-du -s /home/user1

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 -none, as fsck must be run manually for each filesystem -/, /dev/pts, and /dev/shm -/, /proc, and swap -all of them, as fsck is run automatically at boot for all filesystems

/, /proc, and swap

Reorder the steps to install a new disk drive on a Linux workstation. 1. Install a device driver if not present 2. Mount the device 3. Create a partition 4. Install a filesystem 5. Attach a physical device 6. Create a mount point if it doesn't exist -5, 6, 2, 4, 1, 3 -5, 6, 4, 2, 3, 1 -5, 1, 2, 6, 4, 3 -5, 1, 3, 6, 2, 4

5, 1, 3, 6, 2, 4

Character devices typically transfer data more quickly than block devices. (True of False)

False

You can mount/unmount a device even if a user process is using the mount point. (True or False)

False

Before creating an LVM Physical Volume, you must create a standard partition. (True or False)

True

Standard partition can be extended only if an unallocated partition exists after it in contiguous manner. (True or False)

True

Mounting associates a __________ file with a __________ point. -binary, mount -block, character -mount,device -device,mount

device, mount

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

mount -a

Which statements are true for LVM Volume Group? (Select two) - A VG consists of one or more PVs - PVs in a VG must be contiguous - A VG can be extended - A VG is formatted before its use

- A VG consists of one or more PVs - A VG can be extended

What will fsck do if it cannot repair the bad blocks? (Select two) - delete them - flag them - Move them to "lost+Found" directory under the root directory - Move them to "lost+Found" directory under the mount point

- flag them -Move them to "lost+Found" directory under the mount point

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.) -Mount the two SSDs so they are accessible by the operating system. -Mount a filesystem to each of SSDs. -Create one or more partitions on each of the SSDs. -Use the vi editor to edit /etc/mtab and create an entry for 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.

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

Which of the following statements are true? (Choose all that apply.) -Quotas can only limit user space. -Quotas can only limit the number of files a user can own. -Quotas can limit both userspace and the number of files a user can own. -Hard limits can never be exceeded. -Soft limits can never be exceeded. -Soft limits allow a user to exceed them for a certain period of time. -Either a hard limit or a soft limit can be set, but not both concurrently.

-Quotas can limit both userspace 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.

Find the match. /dev/null /dev/tty1 /dev/sda1 /dev/sr0 -the first dvd drive. -the first partition on the first SATA/SCSI/SAS HDD or SDD. -the first local terminal on the system (ctrl+al+f1) -Blackhole; any data sent to the device is discarded

/dev/null-Blackhole; any data sent to the device is discarded /dev/tty1-the first local terminal on the system (ctrl+al+f1) /dev/sda1-the first partition on the first SATA/SCSI/SAS HDD or SDD. /dev/sr0-the first dvd drive.

You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.) -cat /etc/fstab -df -T -cat /etc/mtab -ls /sys/block

-df -T -cat /etc/mtab

What does the command dumpe2fs -h do? -backs up an ext2 filesystem -displays the number of used and available inodes for an ext2/ext3/ext4 filesystem -dumps an ext2 filesystem -nothing; it is not a valid command

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

A device file _______________________. (Choose all that apply.) -has no inode section -has no data section -displays a major and minor number in place of a file size -has a fixed size of 300 kilobytes

-has no data section -displays a major and minor number in place of a file size

Which command is used to format a partition on a hard disk drive with the ext4 filesystem? -format_ext4 device -ext4mkfs device -mke2fs -t ext4 device -makeext4FS device

-mke2fs -t ext4 device

Which command can be used to repair an XFS filesystem? -fsck -t xfs /dev/sdb1 -e2fsck /dev/sdb1 -fsck.xfs /dev/sdb1 -xfs_repair /dev/sdb1

-xfs_repair /dev/sdb1

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? -Look in the root of the filesystem. -The system prompts the user for a target location when it comes across a file it cannot repair. -Mount the filesystem and check the lost+found directory underneath the mount point. -View the contents of the directory /lost+found.

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? -Nothing; the files are lost and cannot ever be accessed. -Nothing; the files could not have been there because you can only mount to empty directories. -Unmount the device from the directory. -Run the fsck command to recover the file. -Look in the lost+found directory for the file.

Unmount the device from the directory.

What must you do to successfully run the fsck command on a filesystem? -Run the fsck command with the -u option to automatically unmount the filesystem first. -Choose yes when warned that running fsck on a mounted filesystem can cause damage. -Unmount the filesystem. -Ensure that the filesystem is mounted.

Unmount the filesystem.

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

df


Related study sets

ECO 2023 UNIT 3 CH 10, BE Homework 8 (1/2), Economics Exam, Econ 414 Final Chapter 14, Fin 321 Midterm 2, Macro Final Exam, Econ chapter 14 & 16, ManEcon - Chapter 14 quiz, quiz 4, ECON TEST 3, Managerial Economics Chapter 12 Test Bank, BE Homework 8...

View Set

CIS 460 MIDTERM REVIEW Part 3: Basic Encryption and Cryptography

View Set

Chapter 8 Portable Fire Extinguishers

View Set

Management: Information Systems 410 CHS 9-12

View Set

Pronouns: Subjects, Direct Objects, Indirect Objects, Predicate Nominatives, and Objects of the Preposition.

View Set