Täglich Wöchentlich Monatlich

Täglich Shaarli

Alle Links eines Tag auf einer Seite.

Heute - May 19, 2024

How to Get the UUID of a Disk Partition in Linux
 Latest Tutorials
Books
Courses
Who we are?

Tips
How to Get the UUID of a Disk Partition in Linux

UUID is a property of disk partitions used to uniquely identify them. Here are various ways to get the UUID of a disk partition in the Linux command line.

Nov 26, 2022 — Sagar Sharma
How to Get the UUID of a Disk Partition in Linux
Warp Terminal

UUID (Universally Unique Identifiers) is a property of disk partitions and is crucial while managing servers with hundreds of drives.

And the easiest way to get UUID is to list the contents of /dev/disk/by-UUID using the ls command:

ls -l /dev/disk/by-uuid/

use ls command to get UUID of partitions in linux

The highlighted text in light blue color is the UUID of the partition highlighted with yellow color.

That's just one way to know the UUID of a partition. There are couple of more ways as well.
Using the blkid utility to get UUID

The blkid utility is used to get information about data blocks in Linux.

And when used without any options, you get details, including the UUID of every memory block present in the system:

blkid