loader image
cPanel Hosting

How to manage directory, file in a cPanel Server via terminal

1. Login to the root user via terminal

2. Input command >> df -h

FileSystems:
Size: The total disk space of your server
Used: The used space of your server
Avail: The leftover space on your server
Use%: Percentage used space
Mounted On: Location of used space

3. To view folders in the cPanel server which actually consumes the Disk Usage, input the following command

>> du -hxd1 / –exclude=/proc –exclude=/sys –exclude=/home/virtfs

Please note, that virtual filesystems, such as /proc/and /sys, and bind mounts, such as /home/virtfs, need to be excluded from du since they do not take up space on the disk

4. To examine an individual directory for disk usage

>> du -sch /home/*

>> du -sch /home/athapa/*

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page