Forrest logo
back to context overview

lsblk

List of commands for lsblk:

  • lsblk:ai:0373c Lists all drives with their types, sizes, and mount points
    $ lsblk -o NAME,TYPE,SIZE,MOUNTPOINT
    try on your machine
    explain this command
  • lsblk:ai:0b3da List all partitions as a JSON string
    $ lsblk -J
    try on your machine
    explain this command
  • lsblk:ai:27166 Check if /dev/sdb1 is mounted and its mountpoint using lsblk command
    $ lsblk /dev/sdb1 -o NAME,MOUNTPOINT
    try on your machine
    explain this command
  • lsblk:ai:2bf9e Lists all hard drive partitions with their filesystem type and mount point
    $ lsblk -o NAME,FSTYPE,MOUNTPOINT -r -J
    try on your machine
    explain this command
  • lsblk:ai:8b78b Verify the ext4 file system on /dev/sdb1
    $ lsblk -f /dev/sdb1
    try on your machine
    explain this command
  • lsblk:tldr:1490c lsblk: Use ASCII characters for tree formatting.
    $ lsblk -i
    try on your machine
    explain this command
  • lsblk:tldr:28b34 lsblk: Exclude the devices specified by the comma-separated list of major device numbers.
    $ lsblk -e ${1,7}
    try on your machine
    explain this command
  • lsblk:tldr:3e041 lsblk: Display a customized summary using a comma-separated list of columns.
    $ lsblk --output ${NAME},${SERIAL},${MODEL},${TRAN},${TYPE},${SIZE},${FSTYPE},${MOUNTPOINT}
    try on your machine
    explain this command
  • lsblk:tldr:8aa2d lsblk: Print the SIZE column in bytes rather than in a human-readable format.
    $ lsblk -b
    try on your machine
    explain this command
  • lsblk:tldr:918e3 lsblk: Output info about filesystems.
    $ lsblk -f
    try on your machine
    explain this command
  • lsblk:tldr:97ca5 lsblk: Output info about block-device topology.
    $ lsblk -t
    try on your machine
    explain this command
  • lsblk:tldr:9d3de lsblk: List all storage devices in a tree-like format.
    $ lsblk
    try on your machine
    explain this command
  • lsblk:tldr:f46f8 lsblk: Also list empty devices.
    $ lsblk -a
    try on your machine
    explain this command
back to context overview