The easiest way to get UUID is to list the contents of /dev/disk/by-UUID using the ls command. The highlighted text in light blue color is the UUID of the partition highlighted with yellow color. If you have any other questions, feel free to let me know in the comments.

1m read timeFrom linuxhandbook.com
Post cover image
Table of contents
Using the blkid utility to get UUIDUsing the lsblk utility to get UUIDWrapping Up

Sort: