Skip to content

lsblk command

List disks, partitions and where they are mounted.

On this page

Syntax

lsblk [options] [device…]

Provided by the util-linux package. Run man lsblk for the full manual.

Common options

OptionWhat it does
-fShow file systems, labels and UUIDs
-o COLUMNSChoose columns
-dDisks only, no partitions
-pFull device paths

Examples

  1. List disks and partitions

    lsblk
  2. With file systems and UUIDs

    lsblk -f
  3. Disks only

    lsblk -d
  4. Pick columns

    lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,MODEL

← All Linux commands · Suggest a fix

Back to top