From 9997883359b3e7a236010d018b73d57cb5495b7e Mon Sep 17 00:00:00 2001 From: JrCs <90z7oey02@sneakemail.com> Date: Mon, 24 Feb 2014 11:36:45 +0100 Subject: [PATCH] Add find cheat: show number of inodes used --- cheatsheets/find | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheatsheets/find b/cheatsheets/find index c6126b3..34cec7f 100644 --- a/cheatsheets/find +++ b/cheatsheets/find @@ -39,3 +39,6 @@ find . -maxdepth 2 -name build -type d # To search all files who are not in .git directory find . ! -iwholename '*.git*' -type f + +# Show number of inode used in current and sub directories +sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n