" Hosting "

How to check inode usage on linux for a specific cpanel user account or directory

If you’re a linux system administrator you’re probably already familiar with the term “inode”.  For those of you who are not, an inode is basically a way to measure the amount of files a user has.  This includes every email, cache file, image, and so on.  If it has a filename it is considered an inode.  Normally hosts will use this as a way to determine clients that need to be removed from backups because of the IO load they put on the server from the amount of inodes they have.

A few ways to measure this are…

Using the script I created and posted on GitHub:

Or …


Using SCP to copy a file on a non standard ssh port

Frequently system administrators will change the SSH port from the standard port 22 for security reasons. If this is the case and you need to transfer something via SCP, below is the command to transfer a file from one server to another using a non standard SSH port.

How to restore cPanel DNS zone files from backup

If your cPanel is setup for daily backups and you accidentally deleted a DNS zone or need to restore one for a client, all your DNS zone backup files are stored here: