Module 5 Live Virtual Machine Labs 1-8 Flashcards

1
Q

lab 5-1

Which of the following command is used to navigate to the root directory?

A

cd /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following sub-directories are part of the root directory? [Choose all that apply.]

A

boot
var
home
tmp
usr

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command will allow you to find out the total space taken by each of the directories in a Linux system?

A

du -h –max-depth=1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which type of partition moves items from the computer memory to its hard drive?

A

swap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

mount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

lab 5-2

What is the number of MBR partitions contained in a hard drive?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which command allows you to display the existing partitions on a disk?

A

fdisk -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When using the gdisk command, what is the default GUID used?

A

8300

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many partitions does GPT allow you to create on a disk?

A

unlimited

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

lab 5-3

Which of the following tasks can be performed using disk management tools in Linux? [Choose all that apply.]

A

Monitor free and used space

Remove partitions

Specifying the type of filesystem on a partition

Create partitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following information is displayed using the lsblk command? [Choose all that apply.]

A

The total size of the partition

The mount points if any available

The total size of the block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which parameter should you use to list the empty devices with the lsblk command?

A

-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which parameter should you use to list the device size in bytes with the lsblk com

A

-b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which parameter of the lsblk command will list only the main devices, not the slave devices?

A

-d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

lab 5-4

When you boot a Linux system, the _____ filesystem is mounted as part of the initialization process.

A

the root (/) filesystem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

A

/etc/fstab

18
Q

Which command should you use to find the UID of a filesystem?

19
Q

To view the current partitions mounted, which command should you use?

20
Q

To mount a CD-ROM, in which directory should you create a directory?

21
Q

lab 5-5

You can use view the ______ file to view the hard drive details.

A

/proc/partitions

22
Q

The _______ command displays the information about the mounted filesystems.

23
Q

The _______ utility is meant to list the disk space usage on filesystems.

24
Q

The __________ utility is meant to list the SCSI devices on a system.

25
The _________ utility is meant to print the drive information.
smartctl
26
lab 5-6 Which utility can repair a damaged filesystem?
fsck
27
Which two parameters should you use with fsck to auto repair errors if they are detected? [Choose two.]
-a -
28
Using which parameter of the fsck command can you check the mounted file systems?
-M
29
After issuing the fsck -M /dev/sda1 command, which command should generate the output as 0 or 1?
echo $?
30
Which parameter should you use with the fsck command to view the list of unmounted filesystems?
-M
31
lab 5-7 To configure the disk quota, you first add the filesystems that require the quotas implemented to the _________ file.
/etc/fstab
32
Which parameter of quotacheck command creates the quota files for each filesystem that has quota enabled?
-c
33
Which parameter of the quotacheck command creates the quota files for a user quota?
-u
34
Which parameter of the quotacheck command checks for locally mounted filesystems that have quota enabled?
-a
35
Which parameter of the quotacheck command checks for the group quota?
-g
36
lab 5-8 Which type of information is indicated by an inode? [Choose all that apply.]
file size, file type, access permission
37
Which command should you use to determine the partition of the current working directory?
df .
38
Which command is used to determine the disk usage?
du
39
Which command is used to verify the integrity of a filesystem?
fsck
40
Which parameter should you use with the fsck command to force to check the integrity of a filesystem?
-f