Using diff to create a patch in Linux
Create the patch: diff -aru file.orig file > file.patch Apply the patch (-b creates a copy of the original with a .orig extension): patch -b file file.patch
Create the patch: diff -aru file.orig file > file.patch Apply the patch (-b creates a copy of the original with a .orig extension): patch -b file file.patch