Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the blkid command of Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use Linux's blkid command". In daily operation, I believe many people have doubts about how to use Linux's blkid command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use Linux's blkid command." Next, please follow the editor to study!

Linux commonly used commands blkid commands to query the type of file system used on the query device. Blkid is mainly used to query the file system type, LABEL, UUID and other information used by the block devices of the system (including swap partitions). To use this command, you must install the e2fsprogs package.

Syntax blkid-L |-U blkid [- c] [- ghlLv] [- o] [- s] [- t]-[w] [..] Blkid-p [- s] [- O] [- S] [- o]... Blkid-I [- s] [- o]... Option-c specify cache file (default: / etc/blkid.tab, / dev/null = none)-d don't encode non-printing characters-h display help information-g garbage collect the blkid cache-o specify output format-k list all known filesystems/RAIDs and exit-s display specified information All information is displayed by default-t find device with a specific token (NAME=value pair)-l look up only first device with token specified by-t-L convert LABEL to device name-U convert UUID to device name-v shows version information-w write cache to different file (/ dev/null = no write) specify device (s) to probe (default: all devices) Low-level probing options:-p low-level superblocks probing (bypass cache) )-i gather information about i gather information about O limits-S overwrite device size-Oprobe at the given offset-u filter by "usage" (e.g.-u filesystem Raid)-n filter by filesystem type (e.g.-n vfat,ext3) instance 1, lists the types of all mounted file systems in the current system:

Sudo blkid2, display specified device UUID:

Sudo blkid-s UUID / dev/sda53, display all devices UUID:

Sudo blkid-s UUID4, display specified device LABEL:

Sudo blkid-s LABEL / dev/sda55, display all devices LABEL:

Sudo blkid-s LABEL6, showing all device file systems:

Sudo blkid-s TYPE7, display all devices:

Sudo blkid-o device8, view details as a list:

Sudo blkid-o list at this point, the study on "how to use the blkid command of Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report