当前位置:网站首页>Lsblk command - check the disk of the system. I don't often use this command, but it's still very easy to use. Onion duck, like, collect, pay attention, wait for your arrival!

Lsblk command - check the disk of the system. I don't often use this command, but it's still very easy to use. Onion duck, like, collect, pay attention, wait for your arrival!

2022-07-05 01:28:00 C_ Ty


lsblk The English of the order is “list block”, Information used to list all available block devices , And it shows the dependency between them , But it doesn't list RAM Disk information .


lsblk The command is contained in util-linux-ng In bag , Now the package is renamed util-linux.


grammar :

Grammar format :lsblk [ Parameters ]

Common parameters :

Parameters          describe

-a         Show all devices

-b         With bytes How to display device size

-d         No display
slaves or holders

-D        print
discard capabilities

-e         Exclude devices

-f         Display file system information

-h         Display help information

-i        use
ascii characters only

-m         Display permission information

-l         Use list format to display

-n         Don't show titles

-o         Output column

-P         Use key=”value” Format display

-r         Use the original format to display

-t         Display topology information

Case list :

lsblk The command lists all block devices in a tree by default :

lsblk

lsblk command – Check the system's disks , I don't often use this command , But it's still very easy to use , Scallion duck , give the thumbs-up , Collection , Pay more attention to , Wait for your arrival !_ Block device

The default option does not list all empty devices :

lsblk
-a

It can also be used to list the ownership relationship of a specific device , You can also list groups and patterns :

lsblk
-m

lsblk command – Check the system's disks , I don't often use this command , But it's still very easy to use , Scallion duck , give the thumbs-up , Collection , Pay more attention to , Wait for your arrival !_linux_02

To get SCSI List of devices , You can only use -S Options , This option is used to print dependencies in reverse order :

lsblk
-S

lsblk command – Check the system's disks , I don't often use this command , But it's still very easy to use , Scallion duck , give the thumbs-up , Collection , Pay more attention to , Wait for your arrival !_lsblk_03

for example , You may want to list devices in a list format , Instead of the default tree format . You can combine two different options , To get the desired output :

lsblk
-nl

lsblk command – Check the system's disks , I don't often use this command , But it's still very easy to use , Scallion duck , give the thumbs-up , Collection , Pay more attention to , Wait for your arrival !_ Block device _04



原网站

版权声明
本文为[C_ Ty]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141027395962.html