Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

lsblk

List block device information

Syntax

lsblk [OPTION]... [DEVICE]...

Common Options

-aShow all devices
-fShow filesystem info
-mShow permissions
-oSpecify output columns
-lList format
-tTopology view
-SSCSI devices only
-JJSON output

Common Examples

lsblk

List all block devices

lsblk -f

Show filesystem info

lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT

Custom output columns

lsblk -l

List format

lsblk /dev/sda

Show specific device

lsblk -J

JSON output

Related Commands

Related Tools

More Code & Dev Tools