Creating a Patch File: diff -Naur olddir newdir > new-patch-file
- or -
diff -Naur oldfile newfile >new-patch-file
Using the Patch Command: patch -p0 patch -p1
Which one of the above patch commands you use depends on your current working directory.
Other Methods for calling the patch command – using standard input of patch: cat new-patch | patch -p0