with the command
du -sh *
I get the summary of files in MB,GB, etc.
If I use
du -s * | sort -nk1
I get the summary sort by size.
How I can get the summary sort by size in MB, GB, etc?
the OS is ubuntu
If you're using GNU sort, try the following:
du -sh * | sort -hk1,1
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago