Linux Disk Usage Exclude Dot Directories

I’m always searching for how to do this because I keep forgetting. So here it is, no more searching.

du -mcs /home/user/* /home/user/.[!.]* | sort -n

Leave a Reply

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