lsblk
Topic: Disks and space
Program: lsblk
Shows disks and partitions as a tree.
Package: perm
Usage
lsblk [OPTION]...
Description
List the block devices as a tree: disks with their partitions, device numbers, removable (RM), size, read-only (RO), type and where they are mounted.
Options in the simulator
-
-h, --help show this help and exit
38 more options of the real program, not in the simulator yet
-
-A, --noemptynot in the simulator yetOn a real system it selects devices; the simulator always shows all of them.
-
-D, --discardnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-E, --dedupneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-I, --includeneeds a value not in the simulator yetOn a real system it selects devices; the simulator always shows all of them.
-
-J, --jsonnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-M, --mergenot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-O, --output-allnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-P, --pairsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-Q, --filterneeds a value not in the simulator yetOn a real system it selects devices; the simulator always shows all of them.
-
--highlightneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
--ct-filterneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
--ctneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-S, --scsinot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-N, --nvmenot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-v, --virtionot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-T, --treevalue optional not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-a, --allnot in the simulator yetOn a real system it selects devices; the simulator always shows all of them.
-
-b, --bytesnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-d, --nodepsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-e, --excludeneeds a value not in the simulator yetOn a real system it selects devices; the simulator always shows all of them.
-
-f, --fsnot in the simulator yetMounting file systems comes with LPIC-1.
-
-i, --asciinot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-l, --listnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-m, --permsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-n, --noheadingsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-o, --outputneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-p, --pathsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-r, --rawnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-s, --inversenot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-t, --topologynot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-w, --widthneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-x, --sortneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-y, --shellnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-z, --zonednot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
--sysrootneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
--properties-byneeds a value not in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-H, --list-columnsnot in the simulator yetOn a real system lsblk shows other columns or another layout with it; the simulator only knows the basic view.
-
-V, --versionnot in the simulator yetOn a real system it prints the util-linux version.
Examples
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 40G 0 disk
└─sda1 8:1 0 40G 0 part / Where you learn it
Lessons
- Where has the space gone Linux Basics, Module 8: Disks and storage