Articles

 Backup MySQL database

All you need is the following command:mysqldump -h localhost -u dbuser -p dbname >...

 Basic commands and their usage

The following is a breakdown of the most commonly used commands and the most commonly used...

 Clone hard disk

To save space, you can compress data produced by dd with gzip, e.g.:dd if=/dev/hdb | gzip -c...

 Decompress bz2 on current directory

This format has the best level of compression among all common Linux formats. But this comes at a...

 Find large files

Finds all files over 200,000KB (roughly 200MB) in size and presents their names and size in a...

 Find users with php flag into htaccess

suPHP doesn't allow the use of php_flag and php_value in .htaccess files, so find users with...

 How to empty a file without deleting and creating again

Simply issue the following command by replacing the filename with your filename. cat /dev/null...

 How to find all directories with 777 permissions

find /home -type d -perm 777 Of course you need to replace /home with the appropriate path.

 Remove .svn folders

If you have just checkout Guru-host's CMS via subversion and want to clean up .svn folders please...

 Remove comment lines out of large config files

This example is to remove comment lines from the huge squid.conf file.cd /etc/squid/ or cd...

 Show directory sizes using du

du command takes a little while to run, depending on what directory you pass it as a parameter,...