This is very basic, but I plan on adding more detail as the questions come up.
diff is a tool that can be use to create a “diff” or “patch” file that contains differences between two files. Though diff can write into many different format, most people will prefer the unified format as it is easier to work with.
How to use diff
The basic use of diff is,
diff -u original.txt modified.txt > file.patch
If you want to use diff against two directories, the command is,
diff -rupN original modified > program.patch



