How to list available disks?

0122

To list available disks on a Linux system, you can use the following command:

lsblk

This command displays a tree-like structure of all block devices, including disks and their partitions.

Alternatively, you can also use:

fdisk -l

This command lists all disks and their partitions along with detailed information about each disk.

Another option is:

cat /proc/partitions

This will show a list of all partitions recognized by the kernel.

0 Comments

no data
Be the first to share your comment!