patch – Apply a diff file to an original

Syntax

patch {option} [original_file] patch_file

The patch tool modifies one or more original text files by applying a difference file which was generated by the diff tool. The difference file is also called a patch. The names of the files to be patched are usually taken from the patch file itself, but if there is only one original_file to be patched it can also be specified in the patch command.

Further information

man patch


2022-01-30