mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
Merge pull request #386 from navarroaxel/lsblk
Add cheatsheet for lsblk
This commit is contained in:
commit
ce1f4a099c
1 changed files with 21 additions and 0 deletions
21
cheat/cheatsheets/lsblk
Normal file
21
cheat/cheatsheets/lsblk
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Show all available block devices along with their partitioning schemes
|
||||
lsblk
|
||||
|
||||
# To show SCSI devices:
|
||||
lsblk --scsi
|
||||
|
||||
# To show a specific device
|
||||
lsblk /dev/sda
|
||||
|
||||
# To verify TRIM support:
|
||||
# Check the values of DISC-GRAN (discard granularity) and DISC-MAX (discard max bytes) columns.
|
||||
# Non-zero values indicate TRIM support
|
||||
lsblk --discard
|
||||
|
||||
# To featch info about filesystems:
|
||||
lsblk --fs
|
||||
|
||||
# For JSON, LIST or TREE output formats use the following flags:
|
||||
lsblk --json
|
||||
lsblk --list
|
||||
lsblk --tree # default view
|
Loading…
Reference in a new issue