Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2005, 12:50 AM
Registered User
 
Join Date: Mar 2002
Posts: 421
spaceman
Listing largest files on a hosting account, ordered by size, largest first.

Hi All,

Sometimes it can be really hard - and really useful - to determine where storage space is being used up on a hosting account. A really easy way to help work this out is to run this command on a hosting account (where the hosting account name in this example is called 'ventura'):

find /home/ventura/ -type f -printf '%s %p \n' | sort -rn | less | more

This will search all files in the 'ventura' hosting account (incl. all sub folders, sub sub folders, etc.), and output a list of files ordered by size, biggest first.

For what it's worth, I've just added this as an enhancement request to bugzilla.cpanel in the hope that this command or similar could be included within WHM.
__________________
  • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc