102.1 Flashcards
Which command is used to create a new partition on a disk?
a) mkfs
b) fdisk
c) mount
d) df
b) fdisk
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
c) 4
Which file in Linux stores the partition table information?
a) /etc/fstab
b) /proc/partitions
c) /dev/partition
d) /proc/partition
b) /proc/partitions
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
c) ext4
What does LVM stand for?
a) Logical Volume Manager
b) Linux Volume Manager
c) Low Volume Management
d) Logical View Manager
a) Logical Volume Manager
What tool would you use to resize a partition in Linux?
a) resize2fs
b) mkfs
c) fdisk
d) lsblk
a) resize2fs
Which partition table scheme is commonly used for disks larger than 2TB?
a) MBR
b) GPT
c) NTFS
d) FAT32
b) GPT
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
b) To serve as virtual memory
Which command can be used to check the available disk space on mounted partitions?
a) df
b) du
c) fdisk
d) lsblk
a) df
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) /etc/fstab
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) fdisk -l /dev/sda
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
b) To store the bootloader and kernel
What command is used to create an LVM volume group?
a) vgcreate
b) lvcreate
c) pvcreate
d) mkfs
a) vgcreate
Which of the following is a valid mount option?
a) ro
b) lvm
c) dir
d) gpt
a) ro
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) Twice the size of physical RAM