Skip to main content

Command Palette

Search for a command to run...

Linux commands to check disk usage

Just a reference for myself but maybe also useful for others who forgot ๐Ÿ™Š

Published
โ€ข1 min read
Linux commands to check disk usage
R

Hi, I am a cloud engineer from Barneveld, The Netherlands. I specialize in AWS but also do some backend and frontend development.

I am currently employed full-time and am a mentor at CoderDojo Amersfoort, The Netherlands.

Please feel free to get in touch if you have any questions for me.

Disk usage per folder in root:
du -axh -d 1 /

Disk usage per folder in current folder:
du -axh -d 1 .

Disk usage per folder in specific folder:
du -axh -d 1 /var/www

Find files bigger than 4G:
find . -type f -size +4G