Blog Archives for category files

Find Inode Of a File

You can find inode of a file using the following command. ls -li filename ls -li test 3932172 -rw-r–r– 1… Continue reading »

How to determine the file system type

If you need to find the filesystem type of any of the drives, You can can use the following command… Continue reading »

Useful scripts to remove eval code

Today I had to remove eval code from a large number of files in an account. But while removing the… Continue reading »

Command to delete files older that N days

find /home/username/ -mtime +N -exec ls -l {} \; eg :  find /home/username/ -mtime +75 -exec ls -l {} \;

WHM related files

/var/cpanel – whm files + bandwidth/ – rrd files of domains + username.accts – reseller accounts are listed in this… Continue reading »

Important cpanel/whm files

/etc/httpd/conf/httpd.conf – apache configuration file /etc/exim.conf – mail server configuration file /etc/named.conf – name server (named) configuration file /etc/proftpd.conf –… Continue reading »