commands.sh

blkid

linux

List all recognized partitions and their Universally Unique Identifier (UUID).

More info →

Options (2)

-o, --outputboolean

List all partitions in a table, including current mountpoints

Example: sudo blkid {{[-o|--output]}} list
-s, --match-tagboolean

Get the UUID of the filesystem on a partition

Example: sudo blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}

Examples (3)

List all partitions

List all partitions in a table, including current mountpoints

sudo blkid [-o|--output] list

Get the UUID of the filesystem on a partition

sudo blkid [-s|--match-tag] UUID [-o|--output] value /dev/sdXY
made by @shridhargupta | data from tldr-pages