Determine disk usage for a filesystem

Feb 10, 2020

Top 10 for root filesystem

[root@localhost ~]# du -amx --max-depth=1 / | sort -rn | head

Top 10 for a specific filesystem

[root@localhost ~]# du -sm /var/* | sort -rn | head

or

[root@localhost ~]# cd /var
[root@localhost ~]# du -sm * | sort -rn | head
administrationlinux

How to fix "File too large" error

Adding a new disk on KVM guest

comments powered by Disqus