Forrest logo
back to the blkid tool

blkid:tldr:b7988

blkid: List all partitions in a table, including current mountpoints.
$ sudo blkid -o list
try on your machine

The command "sudo blkid -o list" is used to display a list of all block devices on a Linux system along with their corresponding UUIDs (Universally Unique Identifiers) and other attributes.

Here is a breakdown of the command:

  • "sudo": The "sudo" command is used to run another command with administrative privileges. It allows you to execute commands that require root or superuser access.
  • "blkid": This command is used to locate or display block device attributes like UUID, filesystem type, label, etc.
  • "-o list": This option specifies the output format. In this case, the "list" format is used, which provides a tabular list of block devices along with their attributes such as UUID, LABEL, TYPE, and PARTLABEL.

When you run this command with administrative privileges, it will fetch the information about all block devices connected to the system and display them in a formatted list. This can be useful for identifying and managing different storage devices or partitions on your Linux system.

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 blkid tool