Check Mysql DB size in MB or GB

To Check the DB size in MB, login to mysql and execute the below query in mysql mysql> SELECT table_schema “DB Name”,Round(Sum(data_length + index_length) / 1024 / 1024 , 1) “DB … Continue Reading →

WGET on Linux

Wget, the “non-interactive network retriever,” is called at the command line. The format of a Wget command is: wget [option]… [URL]… The URL is the address of the file(s) you … Continue Reading →

Howto set-up a crontab in Linux

In Linux, Cron is a daemon/service that executes shell commands periodically on a given schedule. Cron is driven by a crontab, a configuration file that holds details of what commands … Continue Reading →

LDAP with SVN (Subversion) on Centos

Add following lines in include folder of httpd (in folder conf.d) with the name of subversion.conf #Add following lines LoadModule dav_svn_module modules/ LoadModule authz_svn_module modules/ <Location /svn> DAV svn SVNParentPath … Continue Reading →

Remove files older than x days on Linux

You just need to execute the below command as sudo / root find /path/to/files* -mtime +5 -exec rm {} \;