鍍金池/ 問答/Linux/ `lsblk`是`list blocks` 的意思嗎???

`lsblk`是`list blocks` 的意思嗎?。?/h1>

lsblklist blocks 的意思嗎???

# lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 931.5G  0 disk 
├─sda1            8:1    0   500M  0 part /boot
└─sda2            8:2    0   931G  0 part 
  ├─centos-root 253:0    0    50G  0 lvm  /
  ├─centos-swap 253:1    0   7.5G  0 lvm  [SWAP]
  └─centos-home 253:2    0 873.5G  0 lvm  /home

回答
編輯回答
兔囡囡

要活用Linux manual

man lsblk
NAME
       lsblk - list block devices

SYNOPSIS
       lsblk [options] [device...]

DESCRIPTION
       lsblk  lists  information about all available or the specified block devices.  The lsblk com‐
       mand reads the sysfs filesystem and udev db to gather information.

       The command prints all block devices (except RAM disks) in a  tree-like  format  by  default.
       Use lsblk --help to get a list of all available columns.

       The  default  output, as well as the default output from options like --fs and --topology, is
       subject to change.  So whenever possible, you should avoid  using  default  outputs  in  your
       scripts.   Always  explicitly define expected columns by using --output columns-list in envi‐
       ronments where a stable output is required.

       Note that lsblk might be executed in time when udev  does  not  have  all  information  about
       recently  added or modified devices yet. In this case it is recommended to use udevadm settle
       before lsblk to synchronize with udev.

...
2017年1月27日 06:20