[Ilugc] 1D1C - lsblk

  • From: tkdhanasekar@xxxxxxxxx (Dhana Sekar)
  • Date: Fri, 20 Sep 2013 19:30:47 +0530

command: lsblk
usage: list block devices

syntax: $ lsblk [options]  device

examples:

1. for help info of this command

    $ lsblk -h

2. To list all block devices

    $ lsblk -a

3. To print the size column in bytes

    $ lsblk -b

4. To avoid print of device holders and to print
    information of specific device sdaX

    $ lsblk -d /dev/sdaX

5. To print discard capabilities

    $ lsblk -D

6. To print output info about filesystems

    $ lsblk -f

7. To print output info about topology

    $ lsblk -t

8. To print output info about permissions

    $ lsblk -m


regards,
dhanasekar

Other related posts: