Tips and Tricks for Linux

Here is an unordered collections of things which I either like to share or keep forgetting so I need to write them down somewhere 🙂

Command line bits…

Find all files older then n days?

 find /directory/to/search/in/ -mtime +33 -print

And to remove them?

rm $(find /home/_mysql_backup/weekly/ -mtime +33 -print)

MySQL bits…

To check and repair every single table

mysqlcheck -uroot -p -A --auto-repair

 


			

Leave a Reply