From 346abde565a7281fc56ae5643239799b7a13e2cf Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 3 Jun 2020 21:31:47 +0800 Subject: [PATCH] lsblk, df: add exclude examples (#4086) --- pages/common/df.md | 4 ++++ pages/linux/lsblk.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pages/common/df.md b/pages/common/df.md index 84c44fb3d..abc8d99f4 100644 --- a/pages/common/df.md +++ b/pages/common/df.md @@ -17,3 +17,7 @@ - Display statistics on the number of free inodes: `df -i` + +- Display file systems but exclude the specified type: + +`df -x {{squashfs}} -x {{tmpfs}}` diff --git a/pages/linux/lsblk.md b/pages/linux/lsblk.md index ab473b134..9dd3cac48 100644 --- a/pages/linux/lsblk.md +++ b/pages/linux/lsblk.md @@ -25,3 +25,7 @@ - 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}}`