lsblk
Installation
SKILL.md
Identity
| Property | Value |
|---|---|
| Binary | lsblk |
| Config | No persistent config — invoked directly |
| Logs | No persistent logs — output to terminal |
| Type | CLI tool (part of util-linux) |
| Install | apt install util-linux / dnf install util-linux (pre-installed on all Linux systems) |
Key Operations
| Task | Command |
|---|---|
| Default tree view (names, sizes, types, mountpoints) | lsblk |
| Include all empty and RAM block devices | lsblk -a |
| Show filesystem info (UUID, FSTYPE, LABEL, MOUNTPOINT) | lsblk -f |
| JSON output for scripting | lsblk -J |
| Key=value pairs output | lsblk -P |
Related skills