![Forrest logo](/images/logo.png)
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 tellslsblk
to display all available block devices, including empty devices or hidden system devices that are typically not shown. When you runlsblk -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: Runninglsblk -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 likeless
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.