Digital Media Insights for Business Owners

List Folders and Subfolders in order of File Size in Bash

This is the command in bash that you would need to list the folders and subfolders of a directory in order of file size. This is useful because you may need to know in what directory you have bigger files – for example when trying to delete old big emails.

 

/* Command to enter in Bash*/
du -h --max-depth=1 2> /dev/null | sort -n -r | head -n20
/*End of Code*/

Say: "Hola" to your new clients.

Follow us on Social Media for more Tips & Tricks.

Other Posts You May Enjoy