Forrest logo
back to the lsblk tool

lsblk:tldr:f46f8

lsblk: Also list empty devices.
$ lsblk -a
try on your machine

The command lsblk -a is used to list information about all available block devices on a Linux system, including all disks, partitions, and virtual devices. Here's a breakdown of the command: - lsblk: This is the main command to list block devices in a tree-like format.

  • -a: This option tells lsblk to display all available block devices, including empty devices or hidden system devices that are typically not shown. When you run lsblk -a, you will see a output that includes information such as the device name, major and minor device numbers, device size, device type (disk, partition, or virtual), mount points if any, and the parent device in case of nested devices. Note: Running lsblk -a may provide a lot of output on systems with multiple disks and partitions, so you may need to scroll or use a pager command like less to view the complete list.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsblk tool