In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to use the blkid command in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Under Linux, you can use the blkid command 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
Blkid views the file system type, LABEL, UUID and other information of block devices
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 Display all information 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 # display 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 filesystem O limits-S # overwrite device size-O # probe 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:
This is the end of sudo blkid-o list's article on "how to use blkid commands in Linux". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.