Forrest logo
back to context overview

patch

List of commands for patch:

  • patch:tldr:09e88 patch: Apply the reverse of a patch.
    $ patch -R < ${patch-diff}
    try on your machine
    explain this command
  • patch:tldr:3c070 patch: Apply a patch to a specific file.
    $ patch ${filename} < ${patch-diff}
    try on your machine
    explain this command
  • patch:tldr:43360 patch: Patch a file writing the result to a different file.
    $ patch ${path-to-input_file} -o ${path-to-output_file} < ${patch-diff}
    try on your machine
    explain this command
  • patch:tldr:8e277 patch: Apply a patch to the current directory.
    $ patch -p1 < ${patch-diff}
    try on your machine
    explain this command
  • patch:tldr:f78c8 patch: Apply a patch using a diff file (filenames must be included in the diff file).
    $ patch < ${patch-diff}
    try on your machine
    explain this command
back to context overview