Complete the command to list all block devices on your system.
lsblk [1]The lsblk -l command lists all block devices in a list format, showing partitions and devices clearly.
Complete the command to start fdisk on the device /dev/sda.
sudo fdisk [1]To modify partitions on the main disk, you use sudo fdisk /dev/sda.
Fix the error in the command to print detailed info about partitions using lsblk.
lsblk [1]The -o option lets you specify columns to show. Using -o NAME,SIZE,TYPE,MOUNTPOINT shows detailed partition info.
Fill both blanks to create a dictionary comprehension that maps partition names to their sizes using lsblk output.
sizes = { [1]: [2] for part in partitions }This comprehension creates a dictionary where keys are partition names (part.name) and values are their sizes (part.size).
Fill all three blanks to filter partitions larger than 1G and create a dictionary of their names and sizes.
large_parts = { [1]: [2] for p in partitions if [3] > 1_000_000_000 }This comprehension filters partitions where size is greater than 1GB (1,000,000,000 bytes) and maps their names to sizes.