Size of files and folders in the current directory

To get the size of files and folders in the current directory (disk usage)

$> du -sxh *

To get a list of of the biggest data usage folders and files, you can use:

$> sudo du -ax -d 10 /* | sort -n -r | head -n 100

 

Leave a Reply

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

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.