A direct and simple method to delete files or directories in bash is to use find. Here is an example to recursively delete all .svn directories under the current directory.
find -name '*.svn' -print | xargs rm -rf
Dienstag, 22. Juli 2008
Samstag, 12. Juli 2008
History of the tour de france
This is a summary of an article from the time magazine.
The tour de France is one of the most grueling test of human endurance. It kicks off July 5 and is stretched over 21 stages within three weeks.
The race was the brainchild of Henri Desgrange, a Parisian magazine editor who wanted to boost circulation on 1903. The popularity of the race grew fast and the competition turned also fiercer. The adoption of drugs were an effective performance booster until the death of British rider Tom Simpson after taking amphetamines, which prompted the event to adopt drug-testing. This became since then another highlight of the race.
The tour de France is one of the most grueling test of human endurance. It kicks off July 5 and is stretched over 21 stages within three weeks.
The race was the brainchild of Henri Desgrange, a Parisian magazine editor who wanted to boost circulation on 1903. The popularity of the race grew fast and the competition turned also fiercer. The adoption of drugs were an effective performance booster until the death of British rider Tom Simpson after taking amphetamines, which prompted the event to adopt drug-testing. This became since then another highlight of the race.
Mittwoch, 21. Mai 2008
Change database directory of mysql
For me it is easier that the default database directory is not /var/lib/mysql/ but rather in home partition. A solution is given here http://developer.spikesource.com/wiki/index.php/How_to_change_the_mysql_database_location. To notice that, the default configration file is /etc/mysql/my.cnf. On ubuntu 7.10, things are little different, so I have taken the following steps:
- mysqladmin -u root -p shutdown
- change datadir = ${datadir} in my.conf
- ugly setting set chmod -R a+x ${datadir}
- sudo mysqld_safe &
Abonnieren
Posts (Atom)