ITN 170 Chapter 5 Quiz

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

Using which parameter of the fsck command can you check the mounted file systems? -B -a -M -y -k

-M

Which parameter should you use with the fsck command to view the list of unmounted filesystems? -k -B -M -a -y

-M

Which parameter of the quotacheck command checks for locally mounted filesystems that have quota enabled? -u -g -a -c

-a

Which parameter should you use to list the empty devices with the lsblk command? -b -a -l -e

-a

Which two parameters should you use with fsck to auto repair errors if they are detected? [Choose two.] -a -k -b -y -m

-a -y

Which parameter should you use to list the device size in bytes with the lsblk command? -e -a -l -b

-b

Which parameter of quotacheck command creates the quota files for each filesystem that has quota enabled? -k -g -c -u

-c

Which parameter of the lsblk command will list only the main devices, not the slave devices? -a -m -e -d -b

-d

Which parameter should you use with the fsck command to force to check the integrity of a filesystem? -c -f -m -a

-f

Which parameter of the quotacheck command checks for the group quota? -a -g -u -c

-g

Which parameter of the quotacheck command creates the quota files for a user quota? -k -u -g -c

-u

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

/, /proc, and swap

The _______ file lists the partitions that will be detected at the boot time. It also defines which filesystem is mounted as the root partition (/). /etc/hosts /etc/ssh/ssh_config /etc/swap /etc/fstab

/etc/fstab

To configure the disk quota, you first add the filesystems that require the quotas implemented to the _________ file. /proc/mounts /etc/fstab /etc/hosts /proc/partitions

/etc/fstab

To mount a CD-ROM, in which directory should you create a directory? /mount /swap /etc /tmp

/mount

You can use view the ______ file to view the hard drive details. /proc/partitions /etc/fstab /etc/hosts /proc/mounts

/proc/partitions

What is the number of MBR partitions contained in a hard drive? 1 4 2 3

1

What is the maximum number of primary and extended partitions can you define on a hard drive? 3 1 2 4

4

When using the gdisk command, what is the default GUID used? 9100 7200 9300 8300

8300

Which of the following sub-directories are part of the root directory? [Choose all that apply.] boot var home tmp usr

All of them

Which of the following tasks can be performed using disk management tools in Linux? [Choose all that apply.] Remove partitions Monitor free and used space Specifying the type of filesystem on a partition Create partitions

All of them

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.) a. Mount the two SSDs so they are accessible by the operating system. b. Mount a filesystem to each of 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.

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.

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? a. True b. False

False

Which type of information is indicated by an inode? [Choose all that apply.] File type Access permission File conent File size

File type File size Access permission

Which of the following information is displayed using the lsblk command? [Choose all that apply.] The mount points if any available Used and free space on the hard drive The total size of the partition The total size of the block

The mount points if any available The total size of the partition The total size of the block

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? 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 file. e. Look in the lost+found directory for the file.

Unmount the device from the directory.

Which command should you use to find the UID of a filesystem? umount blkid mount ll

blkid

Which of the following command is used to navigate to the root directory? cd \ cd .. cd . cd /

cd /

The _______ command displays the information about the mounted filesystems. df ln umount blkid

df

The _______ utility is meant to list the disk space usage on filesystems. df umount fdisk blkid

df

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

df -T cat /etc/mtab

Which command should you use to determine the partition of the current working directory? df /home df . df -a df

df .

Which command is used to determine the disk usage? mount du ls df

du

Which command will allow you to find out the total space taken by each of the directories in a Linux system? ls -h --max-depth=1 df -h --max-depth=1 fdisk -h --max-depth=1 du -h --max-depth=1

du -h --max-depth=1

After issuing the fsck -M /dev/sda1 command, which command should generate the output as 0 or 1? echo $ echo $$$ echo $? echo

echo $

Which command allows you to display the existing partitions on a disk? fdisk -k fdisk -l fdisk -o fdisk -m

fdisk -l

Which command is used to verify the integrity of a filesystem? mount df fsck du

fsck

Which utility can repair a damaged filesystem? fdisk fsck lsscsi smartctl

fsck

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

gdisk

The __________ utility is meant to list the SCSI devices on a system. df fdisk blkid umount lsscsi

lsscsi

Which of the following command lists all the partitions and their mount points on a hard disk? du fdisk umount mount

mount

To view the current partitions mounted, which command should you use? mount -v mount -t mount -a mount -d

mount -v

The _________ utility is meant to print the drive information. lsscsi fdisk df umount smartctl

smartctl

Which type of partition moves items from the computer memory to its hard drive? usr tmp swap root

swap

When you boot a Linux system, the _____ filesystem is mounted as part of the initialization process. the boot filesystem the root (/) filesystem the swap filesystem the tmp filesystem

the root (/) filesystem

How many partitions does GPT allow you to create on a disk? 4 6 Unlimited 5

unlimited


Conjuntos de estudio relacionados

spanish oral questions and answers

View Set

Physical Geology - Chapter 5 Test Bank

View Set