List directory with file sizes on Linux (ubuntu)

du -sh *

I wanted to be able to list ls the files and folders on the server to find out which ones were taking up the most disk space (as part of the project i’ve been working on). This worked a treat.

Leave a comment

Your email address will not be published. Required fields are marked *