Handy Codesnippets

Don't mess with the snippets

Remove empty directorys using find and exec

find -depth -type d -empty -exec rmdir {} \;

Volltextsuche in der Commandline:

rgrep -i begriff /verzeichnis/*

mount ansgars nfs share to my local filesystem via /etc/fstab

192.168.178.24:/media/usb/share /media/ansgar nfs   rsize=8192,wsize=8192,timeo=14,intr

add git origin to repository

git remote add origin git@frigg:home.git