Below are two commands to sort files in UNIX:
du -xak . | sort -n | tail -100
it finds me the biggest 100 files or directories on the filesystem I’m in
If you want to see which sub-directory of your home directory is the largest, go to your home directory and enter,
du -sk *
du -xak . | sort -n | tail -100
it finds me the biggest 100 files or directories on the filesystem I’m in
If you want to see which sub-directory of your home directory is the largest, go to your home directory and enter,
du -sk *