欧美激情aaaa_伊人久久久大香线蕉综合直播_日韩在线卡一卡二_亚洲成人人体

blkid

查看塊設備的文件系統類型、LABEL、UUID等信息

補充說明

在Linux下可以使用 blkid命令 對查詢設備上所采用文件系統類型進行查詢。blkid主要用來對系統的塊設備(包括交換分區)所使用的文件系統類型、LABEL、UUID等信息進行查詢。要使用這個命令必須安裝e2fsprogs軟件包。

語法

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

選項

-c <file>   # 指定cache文件(default: /etc/blkid.tab, /dev/null = none)
-d          # don't encode non-printing characters
-h          # 顯示幫助信息
-g          # garbage collect the blkid cache
-o <format> # 指定輸出格式
-k          # list all known filesystems/RAIDs and exit
-s <tag>    # 顯示指定信息,默認顯示所有信息
-t <token>  # find device with a specific token (NAME=value pair)
-l          # look up only first device with token specified by -t
-L <label>  # convert LABEL to 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、列出當前系統中所有已掛載文件系統的類型:

sudo blkid

2、顯示指定設備 UUID:

sudo blkid -s UUID /dev/sda5

3、顯示所有設備 UUID:

sudo blkid -s UUID

4、顯示指定設備 LABEL:

sudo blkid -s LABEL /dev/sda5

5、顯示所有設備 LABEL:

sudo blkid -s LABEL

6、顯示所有設備文件系統:

sudo blkid -s TYPE

7、顯示所有設備:

sudo blkid -o device

8、以列表方式查看詳細信息:

sudo blkid -o list
主站蜘蛛池模板: 古田县| 秦皇岛市| 顺昌县| 麦盖提县| 双鸭山市| 枣庄市| 嘉祥县| 滕州市| 大庆市| 衡南县| 鹿邑县| 瓮安县| 哈巴河县| 西乌| 剑河县| 陕西省| 枞阳县| 灵璧县| 凌海市| 南部县| 凤山市| 遵化市| 临湘市| 香港 | 灌云县| 双桥区| 济源市| 莲花县| 余干县| 博罗县| 镇坪县| 林西县| 仁寿县| 易门县| 扎鲁特旗| 新宁县| 闻喜县| 广西| 彭阳县| 天柱县| 射洪县|