1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:22:08 +02:00
tldr/pages/linux/lsblk.md
2020-12-22 08:59:32 -03:00

35 lines
669 B
Markdown

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