본문 바로가기

command1

du, sort 명령어 조합

# du -h * | sort -nr > $HOME/script.txt * du - estimate file space usage * -h, --human-readable * sort - sort lines of text files * -n, --numeric-sort (compare according to string numerical value) * -r, --reverse (reverse the result of comparisons, 내림차순) LINUX 2013. 10. 19.
반응형