tldr/pages/linux/lsblk.md

28 lines
389 B
Markdown
Raw Normal View History

2016-01-05 18:11:55 +03:00
# lsblk
2016-01-13 14:04:46 +03:00
> Lists information about devices.
2016-01-05 18:11:55 +03:00
2016-01-13 14:04:46 +03:00
- List all storage devices in a tree-like format:
2016-01-05 18:11:55 +03:00
`lsblk`
2016-01-13 14:04:46 +03:00
- Also list empty devices:
2016-01-05 18:11:55 +03:00
2016-03-31 11:32:28 +03:00
`lsblk -a`
2016-01-05 18:11:55 +03:00
2016-01-13 14:04:46 +03:00
- Print the SIZE column in bytes rather than in a human-readable format:
2016-01-05 18:11:55 +03:00
2016-03-31 11:32:28 +03:00
`lsblk -b`
2016-01-05 18:11:55 +03:00
2016-01-13 14:04:46 +03:00
- Output info about filesystems:
2016-01-05 18:11:55 +03:00
2016-03-31 11:32:28 +03:00
`lsblk -f`
2016-01-05 18:11:55 +03:00
2016-01-13 14:04:46 +03:00
- Use ASCII characters for tree formatting:
2016-01-05 18:11:55 +03:00
2016-03-31 11:32:28 +03:00
`lsblk -i`
2016-01-05 18:11:55 +03:00
2016-01-13 14:04:46 +03:00
- Output info about block-device topology:
2016-01-05 18:11:55 +03:00
2016-03-31 11:32:28 +03:00
`lsblk -t`