Monday, June 26, 2006

Usefull linux commands

Here is some command line judo I don't want to forget

  • How to delete a specific file recursively. This is particularly useful for getting rid of things like .svn folders. find . -name .svn -exec rm -rf {} \;

  • How to connect to your mysql db as root 'mysql -uroot mysql'

  • This sql will set root's password to abc 'UPDATE user SET password=PASSWORD("abc") WHERE user="root";'





No comments: