Get the size of the current directory (.) or another one (foldername) with du command.
bash |copy code |?
1 du -sh .2 du -sh foldername
Get the size of the current directory (.) or another one (foldername) with du command.
bash |copy code |?
1 du -sh .2 du -sh foldername
Easy way to list directories, 3 levels max., and then sort them by size
bash |copy code |?
1 du -h --max-depth=3 * | sort -n
Use find to locate files over a criteria size and format output with awk. Changing value of NF variable you change fields separator
bash |copy code |?
1 find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'2