[Work Notes] Linux Quick-Reference Notes

Patch Commands

Create a patch file:

diff -Naur [from-file] [to-file] > [YourFileName.patch]
  • -N: If a file is only in one directory, treat it as present but empty in the other
  • -a: Treat all files as text
  • -u: Use unified output format
  • -r: Recursively compare subdirectories

SVN — Remove all .svn directories

$ rm -rf `find . -type d -name .svn`

Git — Remove .git

Only need to remove the .git directory at the root of the project.

NFS Mount

mount -t nfs -o nolock 10.0.0.3:/home/vm_share /mnt/shares

Comments & Feedback