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

Buy me a beer

Related posts:

  1. Creating Assembly Code with gcc Use the -S (note: capital S) switch to GCC,...
  2. Creating & using ext3 filesystem images Ext3 is a linux filesystem and used by most...
  3. Shell script to check file & directory existance if [ -f filename ] then echo "file exist"...
  4. How to change ‘ls’ command color @ linux terminal First change ls commands color attribute to auto alias...
  5. Configuring CVS and CVSUP on Linux Installation of CVS and CVSUP Installing CVS on Redhat...