What command is used to view the partition information for a specific disk?

To view the partition information for a specific disk, you can use the fdisk command with the -l option followed by the disk identifier. For example:

sudo fdisk -l /dev/sda

In this command:

  • sudo is used to run the command with superuser privileges.
  • fdisk -l lists the partition tables for all disks or a specific disk if provided.
  • /dev/sda is the identifier for the specific disk you want to inspect (replace it with the appropriate disk identifier as needed).

This command will display detailed information about the partitions on the specified disk.

0 Comments

no data
Be the first to share your comment!