Tag: size
-
Getting size of a directory using du
Get the size of the current directory (.) or another one (foldername) with du command. du -sh . du -sh foldername
-
Format find and awk output locating large files
Use find to locate files over a criteria size and format output with awk. Changing value of NF variable you change fields separator find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $NF “: ” $5 }’