From 9e1ea4fae416928ec1059f72f452917833905436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20=C3=96zdemircili?= Date: Fri, 30 Aug 2013 12:16:39 +0200 Subject: [PATCH] New cheats on find --- cheatsheets/find | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cheatsheets/find b/cheatsheets/find index a78583a..a685ec6 100644 --- a/cheatsheets/find +++ b/cheatsheets/find @@ -12,3 +12,7 @@ find . -type f -perm 777 # To find files with setuid bit set: find . -xdev \( -perm -4000 \) -type f -print0 | xargs -0 ls -l + +# To find files bigger thank 2 MB and list them: +find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' +