blkid --- information inquiry system block device

Can be used under Linux blkid command to query the type of file system on the device using query. blkid mainly used to block the system equipment (including swap) file system type is used, LABEL, UUID information query. To use this command you must install the e2fsprogs package.

grammar

-The blkid | - And
blkid [-c ] [-ghlLv] [-o] [-s ][-t ] [-w ] [ ...]
blkid -p [-s ] [-O ] [-S ][-o] ...
blkid -i [-s ] [-o] ...

Options

-C < File > specifying the cache file (default: /etc/blkid.tab, / dev / null = none)
 -d Don ' T Printing encode non-characters 
- H Display help information
 - G Garbage BLKID the collect The cache
 -o < format> Specifies the output format
 -k List All Known filesystems / RAIDs and Exit
 -s <Tag>     display-designating information, all of the information displayed by default
 -t <token>   Find Device with A specific token (NAME = value pair)
 -l look up only Device with token specified by First - T
 -L <label>   Convert to the lABEL Device name
 -U <UUID>   convert UUID to device name
-v          显示版本信息
-w <file>   write cache to different file (/dev/null = no write)
<dev>       specify device(s) to probe (default: all devices)
Low-level probing options:
-p          low-level superblocks probing (bypass cache)
-i          gather information about I/O limits
-S <size>   overwrite device size
-O <offset> probe at the given offset
-u <list>   filter by "usage" (e.g. -u filesystem,raid)
-n <list>   filter by filesystem type (e.g. -n vfat,ext3)
1 , lists the current system for all types of mounted file systems:

the sudo BLKID
 2 , the display device designated UUID:

the sudo BLKID the UUID -s / dev / sda5
 . 3 , all the display device UUID:

the sudo BLKID - S the UUID
 . 4 , the display device designated LABEL:

the sudo BLKID the LABEL -s / dev / sda5
 . 5 , all the display apparatus LABEL:

the sudo BLKID - S the LABEL
 . 6 , all display device file system:

the sudo BLKID - S the TYPE
 . 7 , all the display device:

sudo blkid - O Device
 8 , in a list view details:

sudo blkid -o list

 

Guess you like

Origin www.cnblogs.com/liujunjun/p/12541209.html