Skip to content

du

This command lists file sizes:

Bash
du -sh /some/file

List all non hidden files and their size in folder:

Bash
du -sh /some/folder/*

List from the biggest to the smallest:

Bash
du -sk [a-z]*/ 2>/dev/null | sort -nr | awk '{printf $2" "}'

10 Biggest dirs

Bash
du -h --max-depth=1 2> /dev/null | sort -hr | tail -n +2 | head

From-biggest-to-smallest

Bash
sudo du -hs * | sort -h -r
Bash Session
1,7G    wolk-sdk
1,4G    mongocrap
925M    qabasic
195M    IoT-Platform-Wrapper
161M    Customer-Portal
73M     configmanagement
70M     notary
62M     CP-Docker
5,9M    mariadb.zip
2,0M    cassandraDocker
24K     test
24K     dashy
12K     wireguard-conf
8,0K    tomcat9-java14-Dockerfile
8,0K    sysmon
8,0K    libreoffice
8,0K    kubernetes-vezba
8,0K    cloud9
8,0K    cassandra.yml
8,0K    cassandra.yaml
4,0K    test.sh
4,0K    sogo
4,0K    colors.sh
Back to top