102.1 Flashcards

1
Q

Which command is used to create a new partition on a disk?
a) mkfs
b) fdisk
c) mount
d) df

A

b) fdisk

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

What is the maximum number of primary partitions you can have on a single MBR-based hard disk?
a) 2
b) 3
c) 4
d) 5

A

c) 4

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

Which file in Linux stores the partition table information?
a) /etc/fstab
b) /proc/partitions
c) /dev/partition
d) /proc/partition

A

b) /proc/partitions

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

What is the default file system type used when formatting a partition with mkfs in most Linux distributions?
a) NTFS
b) FAT32
c) ext4
d) ext3

A

c) ext4

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

What does LVM stand for?
a) Logical Volume Manager
b) Linux Volume Manager
c) Low Volume Management
d) Logical View Manager

A

a) Logical Volume Manager

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

What tool would you use to resize a partition in Linux?
a) resize2fs
b) mkfs
c) fdisk
d) lsblk

A

a) resize2fs

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

Which partition table scheme is commonly used for disks larger than 2TB?
a) MBR
b) GPT
c) NTFS
d) FAT32

A

b) GPT

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

What is the purpose of a swap partition in Linux?
a) To store user data
b) To serve as virtual memory
c) To act as a boot partition
d) To store logs

A

b) To serve as virtual memory

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

Which command can be used to check the available disk space on mounted partitions?
a) df
b) du
c) fdisk
d) lsblk

A

a) df

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

Which file contains information about file systems that should be mounted automatically at boot?
a) /etc/fstab
b) /etc/mtab
c) /proc/mounts
d) /etc/mount

A

a) /etc/fstab

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

What command would you use to display the partitions of a specific hard drive, such as /dev/sda?
a) fdisk -l /dev/sda
b) lsblk /dev/sda
c) mkfs /dev/sda
d) df /dev/sda

A

a) fdisk -l /dev/sda

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

What is the purpose of the ‘/boot’ partition in Linux?
a) To store user data
b) To store the bootloader and kernel
c) To serve as swap space
d) To store log files

A

b) To store the bootloader and kernel

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

What command is used to create an LVM volume group?
a) vgcreate
b) lvcreate
c) pvcreate
d) mkfs

A

a) vgcreate

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

Which of the following is a valid mount option?
a) ro
b) lvm
c) dir
d) gpt

A

a) ro

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

What is the recommended swap space size in Linux?
a) Twice the size of physical RAM
b) Half the size of physical RAM
c) Equal to the size of physical RAM
d) No swap space is required

A

a) Twice the size of physical RAM

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

Which command is used to create a physical volume for LVM?
a) lvcreate
b) pvcreate
c) vgcreate
d) fdisk

A

b) pvcreate

17
Q

What is the maximum size of a partition using the MBR partition table?
a) 1TB
b) 2TB
c) 4TB
d) 16TB

A

b) 2TB

18
Q

Which of the following commands is used to display the UUID of a partition?
a) lsblk
b) blkid
c) df
d) mkfs

A

b) blkid

19
Q

What is the purpose of the ‘/home’ partition?
a) To store system configuration files
b) To store user files and directories
c) To store temporary files
d) To store logs

A

b) To store user files and directories

20
Q

Which command can be used to check the disk usage of a directory?
a) df
b) du
c) fdisk
d) lsblk

A

b) du

21
Q

Which partition type is used for an extended partition in MBR?
a) 0x07
b) 0x05
c) 0x82
d) 0x83

A

b) 0x05

22
Q

What is the default size of an inode in the ext4 file system?
a) 128 bytes
b) 256 bytes
c) 512 bytes
d) 1024 bytes

A

b) 256 bytes

23
Q

Which command is used to mount a file system in Linux?
a) df
b) du
c) mount
d) lsblk

A

c) mount

24
Q

What command is used to create a new swap file?
a) mkswap
b) mkfs
c) fdisk
d) lsblk

A

a) mkswap

25
Q

Which partition type is used for a swap partition in Linux?
a) 0x83
b) 0x82
c) 0x07
d) 0x05

A

b) 0x82

26
Q

What does the ‘mkfs’ command do?
a) Create a new partition
b) Format a partition with a file system
c) Display disk usage
d) Mount a file system

A

b) Format a partition with a file system

27
Q

What is the purpose of the ‘/var’ partition in Linux?
a) To store log files
b) To store user files
c) To store the kernel
d) To serve as swap space

A

a) To store log files

28
Q

What is the primary function of the ‘fdisk’ command?
a) Create and modify partitions
b) Format a partition
c) Mount a file system
d) Check disk usage

A

a) Create and modify partitions

29
Q

Which command is used to label a partition?
a) e2label
b) mklabel
c) fdisk
d) lsblk

A

a) e2label

30
Q

What is the purpose of the ‘/usr’ partition?
a) To store user data
b) To store user programs and system files
c) To store temporary files
d) To store log files

A

b) To store user programs and system files