How to report Files and Folders which are consuming most space in server? [EASY GUIDE]☑️
Today in this documentation you will learn how to determine files and folder which are consuming most disk space in the server. Before getting started let us quick watch the Full video on how to report files and folders which are consuming most disk space in server.
Follow the steps given below to find the most space consuming files and folders via SSH:
Step::1 Login to PuTTy as root and enter the root password
Step::2 Copy the command given below
————————————————————
du -h --explode /proc --max-depth=1/
————————————————————
Step::3 Paste it and press enter
This will show you the disk usage for each folder within “/”. It will list all folders along with the disk space consumed.
Now to check the most space consuming files in server run the command given below ———————————————————
FS='/';clear;date;df -h $FS; echo "Largest Directories:"; du -hcx --max-depth=2 $FS 2>/dev/null | grep [0-9]G | sort -grk 1 | head -15 ;echo "Largest Files:"; nice -n 19 find $FS -mount -type f -print0 2>/dev/null| xargs -0 du -k | sort -rnk1| head -n20 |awk '{printf "%8d MB\t%s\n",($1/1024),$NF}'
———————————————————
This will report the disk usage for the folders held within / and what files are using the most space.
That’s it!!!
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel –https://youtube.com/redserverhost.com
Facebook Page- https://facebook.com/redserverhost
Twitter Page- https://twitter.com/redserverhost.com
If you have any query, feel free to let us know via the comments section below.
Thanks for Reading!!!
Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting, cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting