How can i find which files & directories are taking up the most disk space?


 

This can be very helpful to know, for various reasons. You will need to be logged into your dedicated server or VPS server via SSH, as this command will require you to be logged in via SSH.

du -ha /home/john | sort -n -r 

Replacing "/home/john" with the directory for which you want to know the disk space used for that particular directory. You will see an example output like below 

root@localhost[~]# du -ha /home/john | sort -n -r

228K    .

64K     ./mail

56K     ./.cpanel

28K     ./tmp

28K     ./.fantasticodata

28K     ./.cpanel/datastore

24K     ./.cpanel/caches

16K     ./mail/.Trash

16K     ./mail/.Sent

16K     ./mail/.Drafts

12K     ./.cpanel/caches/filesys

8.0K    ./tmp/cpbandwidth

8.0K    ./public_html

8.0K    ./public_ftp

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Does Fast Way Web allow IRC?

Fast Way Web does not support or allow IRC on dedicated servers, VPS services, Cloud, or shared...

Suspicious "spamd child" Process Emails From CSF Firewall Software

If you have a dedicated server or VPS with the Config Server Firewall (CSF) software installed...

Block countries using the CSF Firewall

There are two main ways to block a user from accessing a website. You can use mod_geoip, which is...

How can I activate or deactivate webmail clients on my cPanel server?

You can activate or deactivate specific webmail clients on your Cpanel based server by browsing...