du -hm --max-depth=1
du -sm * | sort -n
~/Devel cdu -bp 0.15 _ . 0.13 _ .ipynb_checkpoints/ 0.06 _ .virtualenvs/ 83.27 _________________ beget/ 2.13 _ nagstamon/ 14.25 ___ virtualenvs/ 100.00 Total
Поиск больших файлов
# find and print top 10 largest files in current dir (and subdirs) $ find . -printf '%s %p\n' | sort -nr | head
# restrict search to the current directory "-maxdepth 1" with find $ find . -maxdepth 1 -printf '%s %p\n' | sort -nr | head
# print top 10 largest files and directories $ du -a . | sort -nr | head
# simple way to get one biggest file $ ls -S | head -1
Обсуждение