What does the command
blkid stand for?
I want a way to remember it. Also, what is it often used for?
It stands for "Block Identification". 1*
I general, using
whatis can provide info about a command:
A block (device) is a file that provides buffered access to hardware. E.g a hard-drive. Futher info: https://en.wikipedia.org/wiki/Device_file#Block_devices
Each block device listed by
blkid has a unique universal Identifier (UUID).
blkid allows you to see a listing of these identifiers.
Example output, (note the 'UUID'):
/dev/sda1: LABEL="ESP" UUID="A21C-9B25" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="99cbea91-0fab-424a-81d9-dee679c6e358"
This is often used in conjuncion with
mount command. The reason is that /dev/xyz might be re-assigned to some other letter when hardware is swapped, where as the UUID is generally constant. e.g:
mount UUID="A21C-...." /mnt/myDisk