Man Page: blkid

MAN PAGE: BLKID

EXECUTIVE SUMMARY
Blkid is a command-line utility used to locate and print block device attributes. It is an essential tool for system administrators managing storage on RHEL and Fedora systems. Its primary use case is identifying the universally unique identifier (UUID) and filesystem type (TYPE) of partitions and volumes, which is required for configuring persistent mounts safely in the /etc/fstab file.

BASIC SYNTAX
[sudo] blkid [options] [device]

TEN COMMON USAGES (MOST USEFUL FIRST)

1.  Display All Devices:       sudo blkid
2.  Specific Device Info:     sudo blkid /dev/sda1
3.  List Format Output:       sudo blkid -o list
4.  Show Only UUID:           sudo blkid -s UUID /dev/vdb1
5.  Show Only Value:          sudo blkid -s UUID -o value /dev/vdb1
6.  Find Device by UUID:      sudo blkid -U [UUID_STRING]
7.  Find Device by Label:     sudo blkid -L [LABEL_STRING]
8.  Print Device Names Only:  sudo blkid -o device
9.  Bypass Cache (Force):     sudo blkid -p /dev/sda1
10. Garbage Collect Cache:    sudo blkid -g

CORE FLAGS TO MEMORIZE

-o           | Output format; specifies how information is displayed (e.g., list, value, device)
-s           | Show tag; restricts output to a specific attribute like UUID, TYPE, or LABEL
-U           | UUID; searches for and prints the device matching the specified UUID
-L           | Label; searches for and prints the device matching the specified filesystem label


Keywords: RHEL, Fedora, Linux, blkid, Storage, Filesystem, Djere Service Group

You should also read:

Man Page: ausearch

MAN PAGE: AUSEARCH EXECUTIVE SUMMARY Ausearch is a tool used to query the audit daemon logs based on specific events and search criteria.

Man Page: tmux

MAN PAGE: TMUX EXECUTIVE SUMMARY Tmux (Terminal Multiplexer) is a tool used to run multiple persistent terminal sessions within a single window. It…

Man Page: apt

MAN PAGE: APT EXECUTIVE SUMMARY APT (Advanced Package Tool) is a tool used to install, update, and manage software packages. It is an…

Man Page: hostnamectl

MAN PAGE: hostnamectl EXECUTIVE SUMMARY Hostnamectl manages the system name and metadata. Use it to view or change the computer's identity on a…