Using fdisk and lsblk to List and Identify Disk Partitions
📖 Scenario: You are managing a Linux system and want to see the details of your disk drives and their partitions. You will use two common commands: fdisk and lsblk. These commands help you understand how your disks are divided and what partitions exist.
🎯 Goal: Learn how to use fdisk to list disk partitions and lsblk to display block devices in a tree format. You will write simple commands to view this information and understand the output.
📋 What You'll Learn
Use the
fdisk command with the -l option to list all disk partitionsUse the
lsblk command to display block devices in a tree viewUnderstand how to read the output of both commands
💡 Why This Matters
🌍 Real World
System administrators often need to check disk partitions and usage to manage storage and troubleshoot issues.
💼 Career
Knowing how to use <code>fdisk</code> and <code>lsblk</code> is essential for Linux system administration and automation tasks.
Progress0 / 4 steps