How To Install Lsblk On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Install lsblk
-
Debian
apt-get install util-linuxClick to copy -
Ubuntu
apt-get install util-linuxClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install util-linuxClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install util-linuxClick to copy -
macOS
brew install util-linuxClick to copy
Lists information about devices.
How to use lsblk?
Below are few example commands for lsblk that you can use in the terminal.
List all storage devices in a tree-like format:lsblkClick to copyAlso list empty devices:lsblk -aClick to copyPrint the SIZE column in bytes rather than in a human-readable format:lsblk -bClick to copyOutput info about filesystems:lsblk -fClick to copyUse ASCII characters for tree formatting:lsblk -iClick to copyOutput info about block-device topology:lsblk -tClick to copy
Installing lsblk command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of lsblk 2026 package in your OS.




