KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:how-to-find-cpanel-other-disk-usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
control-panels:cpanel-whm:how-to-find-cpanel-other-disk-usage [2019/10/10 15:12]
Karson N.
control-panels:cpanel-whm:how-to-find-cpanel-other-disk-usage [2020/06/02 11:10] (current)
Karson N.
Line 1: Line 1:
 ====== cPanel Account's Other Disk Usage ====== ====== cPanel Account's Other Disk Usage ======
- 
 \\ \\
  
 cPanel's Disk Usage interface displays the disk usage as consumed via email accounts, sites, databases, logs, etc. It also contains a value for 'other usage' cPanel's Disk Usage interface displays the disk usage as consumed via email accounts, sites, databases, logs, etc. It also contains a value for 'other usage'
  
-{{:control-panels:cpanel-whm:otherdiskusage.png?nolink&800|}}+{{:control-panels:cpanel-whm:otherdiskusage.png?nolink&1200|}}
  
 Sometimes this value can be quite large and you may need to identify exactly what this 'other' usage is so that you can clear disk space.  Sometimes this value can be quite large and you may need to identify exactly what this 'other' usage is so that you can clear disk space. 
  
 To  find the disk usage used by the account within the account's root directory: To  find the disk usage used by the account within the account's root directory:
 +<code>
   du -hHsh /home/username   du -hHsh /home/username
 +</code>
  
 Because the account stores data outside of the account's root directory, such as data in /tmp, Mailman archives, backups, etc., the "Other Usage" section exists to show this data.  Because the account stores data outside of the account's root directory, such as data in /tmp, Mailman archives, backups, etc., the "Other Usage" section exists to show this data. 
  
-NOTE: Trash is also counted under "Other Usage" as well (both email trash and account trash), even though this exists under the user's root directory, so be sure to check the size of this and add it to whatever you find outside the user's root directory.  +**NOTE:** Trash is also counted under "Other Usage" as well (both email trash and account trash), even though this exists under the user's root directory, so be sure to check the size of this and add it to whatever you find outside the user's root directory.  
 +<code>
   du -Hhsc /home/username/.trash   du -Hhsc /home/username/.trash
   du -Hhsc /home/username/mail/*/*/.Trash/   du -Hhsc /home/username/mail/*/*/.Trash/
 +</code>
  
 To find these files located outside the cPanel user's root directory, you can use the following command: To find these files located outside the cPanel user's root directory, you can use the following command:
 +<code>
   find / -user $USERNAME -not -path "/home/$USERNAME*" -exec du -Hhs '{}' \; > otherdiskusage.txt   find / -user $USERNAME -not -path "/home/$USERNAME*" -exec du -Hhs '{}' \; > otherdiskusage.txt
 +</code>
  
 You can then check the file otherdiskusage.txt to see what is consuming this space.  You can then check the file otherdiskusage.txt to see what is consuming this space. 
control-panels/cpanel-whm/how-to-find-cpanel-other-disk-usage.1570738378.txt.gz · Last modified: 2019/10/10 15:12 by Karson N.