1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 07:15:23 +02:00
tldr/pages/linux/lsblk.md
Lena ba58dbdbbd
pages/*: use imperative mood in descriptions (#16219)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-05-02 03:32:14 +03:00

36 lines
789 B
Markdown

# lsblk
> List information about devices.
> More information: <https://manned.org/lsblk>.
- List all storage devices in a tree-like format:
`lsblk`
- Also list empty devices:
`lsblk {{[-a|--all]}}`
- Print the SIZE column in bytes rather than in a human-readable format:
`lsblk {{[-b|--bytes]}}`
- Output info about filesystems:
`lsblk {{[-f|--fs]}}`
- Use ASCII characters for tree formatting:
`lsblk {{[-i|--ascii]}}`
- Output info about block-device topology:
`lsblk {{[-t|--topology]}}`
- Exclude the devices specified by the comma-separated list of major device numbers:
`lsblk {{[-e|--exclude]}} {{1,7,...}}`
- Display a customized summary using a comma-separated list of columns:
`lsblk {{[-o|--output]}} {{NAME,SERIAL,MODEL,TRAN,TYPE,SIZE,FSTYPE,MOUNTPOINT,...}}`