Effortlessly View File and Directory Sizes with the 'du' and 'sort' Commands
To obtain a sorted list of all file and directory sizes in your current directory, from smallest to largest, execute the following command:
du -sh ./* | sort -h
Web Development
To obtain a sorted list of all file and directory sizes in your current directory, from smallest to largest, execute the following command:
du -sh ./* | sort -h