From b0aa272b492930e01af55cfd8da542ee339e56ed Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 12 Jul 2018 07:03:34 -0300 Subject: [PATCH] Add cheatsheet for lsblk --- cheat/cheatsheets/lsblk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cheat/cheatsheets/lsblk diff --git a/cheat/cheatsheets/lsblk b/cheat/cheatsheets/lsblk new file mode 100644 index 0000000..b40fe86 --- /dev/null +++ b/cheat/cheatsheets/lsblk @@ -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