How to delete an .svn folder from all subdirectories

It is very easy to make mistakes when using subversion and trying to copy folders to different locations. Any .svn directories in the wrong place will have unexpected consequences. This is how you can delete all .svn directories recursively on your macos or linux system:

find . -name .svn -exec rm -rf {} ;

How to create private/public ssh keys in Linux

If you want to use ssh to access different servers in your network but you don’t want to always type your password, then follow these steps:

ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa

Now copy your public ssh key to the server you want to access remotely:

Example: scp ~/.ssh/ :/tmp/

Now login to the server and add the key to ~/.ssh/authorized_keys

cat /tmp/ >> ~/.ssh/authorized_keys
rm /tmp/