Creating a Patch File In Linux
Feb.04, 2008 in
linux
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
Related posts:
- Creating Assembly Code with gcc Use the -S (note: capital S) switch to GCC,...
- Creating & using ext3 filesystem images Ext3 is a linux filesystem and used by most...
- Shell script to check file & directory existance if [ -f filename ] then echo "file exist"...
- How to change ‘ls’ command color @ linux terminal First change ls commands color attribute to auto alias...
- Configuring CVS and CVSUP on Linux Installation of CVS and CVSUP Installing CVS on Redhat...
