From 7e62c79dac9ecb2681e93aed14ceeeed7875000c Mon Sep 17 00:00:00 2001 From: James Zhu Date: Sat, 4 Oct 2014 22:13:33 +0800 Subject: [PATCH] mod --- cheat/cheatsheets/find | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/cheatsheets/find b/cheat/cheatsheets/find index 5cd262f..a1a7e1f 100644 --- a/cheat/cheatsheets/find +++ b/cheat/cheatsheets/find @@ -20,7 +20,7 @@ find ./path/ -name '*.txt' -exec rm '{}' \; find ./path/ -name '*.txt' | xargs grep 'string' # To find files with size bigger than 5 Mb and sort them by size: -find ./ -size +5M -type f -print0 | xargs -0 ls -Ssh +find /var -size +5M -type f -ls |sort -rn -k7,7|head # To find files bigger thank 2 MB and list them: find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'