What does `lsblk` command do?

The lsblk command in Linux is used to list information about all available block devices. It provides a tree-like structure that shows the hierarchy of devices, including disks and their partitions. Here are some key features:

  • Displays Device Information: It shows details such as device names, sizes, types (disk, partition, etc.), and mount points.
  • Hierarchy Representation: It visually represents the relationship between disks and their partitions.
  • Options: You can customize the output using various options, such as -l for a list format, -o to specify which columns to display, and -n to omit headers.

Example Usage

lsblk

This command will output a list of all block devices on your system, showing their structure and status.

0 Comments

no data
Be the first to share your comment!