How To Create and Apply a Patch File Using the diff and patch Commands

Published Date Author: , Posted January 25th, 2016 at 4:18:04pm

Create the patch by using the diff -u command:

To use the patch file, apply it to the original. The patch command will create a backup with the extension .orig, and the original file will be updated:

You may need to add the flag --ignore-whitespace to the patch command.

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.