The blkid command
locate/print block device attributes 3 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Options in the examples
-o, --output format- Use the specified output format. Note that the order of variables and devices is not fixed.
-s, --match-tag tag- For each (specified) device, show only the tags that match tag.
Examples
sudo blkid /dev/sdb1
sudo blkid -s UUID -o value /dev/sdb1
sudo blkid