patch and diff
Intro
The diff command is used to compare two files or directories and produce the differences between them in a unified or context format.
The patch command is used to apply a patch file to a target file or directory. A patch file contains the differences generated by the diff command.
So?
# simple comparison of 2 files
# apply patch for one file
# generate patch file for directory
# apply patch for dir