Copied to clipboard

blkid

`blkid` is a Linux command line tool used to view the UUID and file system type of block devices.

Example

  • View the UUID and file system type of all block devices: sudo blkid
  • View the UUID and file system type of a specified device file name: sudo blkid /dev/sda1
  • Output all block device information in key=value format: sudo blkid -p
  • Only display the UUID and file system type of local devices: sudo blkid -l
  • Output the file system type of a specified device file name: sudo blkid -i /dev/sda1
  • Output the UUID and file system type of a specified device type, such as only the UUID and file system type of a swap partition: sudo blkid -t swap