Module 5 Live Virtual Machine Labs 1-8 Flashcards
lab 5-1
Which of the following command is used to navigate to the root directory?
cd /
Which of the following sub-directories are part of the root directory? [Choose all that apply.]
boot
var
home
tmp
usr
Which command will allow you to find out the total space taken by each of the directories in a Linux system?
du -h –max-depth=1
Which type of partition moves items from the computer memory to its hard drive?
swap
Which of the following command lists all the partitions and their mount points on a hard disk?
mount
lab 5-2
What is the number of MBR partitions contained in a hard drive?
1
What is the maximum number of primary and extended partitions can you define on a hard drive?
4
Which command allows you to display the existing partitions on a disk?
fdisk -l
When using the gdisk command, what is the default GUID used?
8300
How many partitions does GPT allow you to create on a disk?
unlimited
lab 5-3
Which of the following tasks can be performed using disk management tools in Linux? [Choose all that apply.]
Monitor free and used space
Remove partitions
Specifying the type of filesystem on a partition
Create partitions
Which of the following information is displayed using the lsblk command? [Choose all that apply.]
The total size of the partition
The mount points if any available
The total size of the block
Which parameter should you use to list the empty devices with the lsblk command?
-a
Which parameter should you use to list the device size in bytes with the lsblk com
-b
Which parameter of the lsblk command will list only the main devices, not the slave devices?
-d
lab 5-4
When you boot a Linux system, the _____ filesystem is mounted as part of the initialization process.
the root (/) filesystem
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/fstab
Which command should you use to find the UID of a filesystem?
blkid
To view the current partitions mounted, which command should you use?
mount -v
To mount a CD-ROM, in which directory should you create a directory?
/media
lab 5-5
You can use view the ______ file to view the hard drive details.
/proc/partitions
The _______ command displays the information about the mounted filesystems.
df
The _______ utility is meant to list the disk space usage on filesystems.
df
The __________ utility is meant to list the SCSI devices on a system.
lsscsi
The _________ utility is meant to print the drive information.
smartctl
lab 5-6
Which utility can repair a damaged filesystem?
fsck
Which two parameters should you use with fsck to auto repair errors if they are detected? [Choose two.]
Using which parameter of the fsck command can you check the mounted file systems?
-M
After issuing the fsck -M /dev/sda1 command, which command should generate the output as 0 or 1?
echo $?
Which parameter should you use with the fsck command to view the list of unmounted filesystems?
-M
lab 5-7
To configure the disk quota, you first add the filesystems that require the quotas implemented to the _________ file.
/etc/fstab
Which parameter of quotacheck command creates the quota files for each filesystem that has quota enabled?
-c
Which parameter of the quotacheck command creates the quota files for a user quota?
-u
Which parameter of the quotacheck command checks for locally mounted filesystems that have quota enabled?
-a
Which parameter of the quotacheck command checks for the group quota?
-g
lab 5-8
Which type of information is indicated by an inode? [Choose all that apply.]
file size,
file type,
access permission
Which command should you use to determine the partition of the current working directory?
df .
Which command is used to determine the disk usage?
du
Which command is used to verify the integrity of a filesystem?
fsck
Which parameter should you use with the fsck command to force to check the integrity of a filesystem?
-f