Unix-based systems carry a lot of useful tool. actually they made them to help us improve our productivity. patch
is one of useful tool that help programer update a existing codebase.
Note
A patch
is a file that contains the differences between two sets of code or files. It is used to update an existing codebase by applying changes without rewriting the entire code. The patch utility is a useful tool for programmers to apply updates to codebases.
When we work on a existing codebase we might update and do some change to it to fix a bug then we can use patch
utility to add update to codebase. I try to explain its advantage with an example like this :