Topic 102.1 Design Hard Disk Layout Flashcards

1
Q

What are the main file system locations in Linux

A

./ - root directory
/var - The variable location, log files and dynamic content
/home - User’s home directory contains personal files
/boot - The boot directory, where Linux kernel and supporting files are stored
/opt - Location used for optional software, often used by third-party software vendors.

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

What is swap space

A

Swap is temporary storage that acts like RAM. When a percentage of RAM is full, the kernel will move less used data to swap. This is generally stored in a swap partition (most common) or a swap file.

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

Explain partition and mount points in Linux.

A

Each drive is contained in /dev/sda

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

How do you mount or display partitions in a Linux environment?

A

mount

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

How do you display all block devices on a Linux system?

A

lsblk

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

How do you list out partition information on a particular disk

A

fdisk -l /dev/diskname

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

How do you show a summary of the swap drive usage?

A

swapon –summary

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

What is LVM and what are the related commands?

A

Allows the creation of groups of disks or partitions that can be assembled into a single (or multiple) file systems. Can be used for nearly any mount point Except /boot. Flexibility, allows for resizing of volumes. Allows for snapshots.

pvs - Lists out the physical volumes

vgs - List out the volume groups within an LVM group

lvs - Lists out the logical volumes within an LVM group

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