Patch two linux folders

Source: Internet
Author: User
Install patches in two linux folders: 1. update one file and apply it to another file: step1: 1diff-uold_filetxtnew_filetxt & gt; filediffstep2: 1patch-p0 & lt; in this case, the content of old_filetxt will be patched by two folders in new_file linux. requirement 1 applies updates of one file to another file: step 1: 1 diff-u old_file.txt new_file.txt> file. diffstep 2: 1 patch-p0 <file.diffthe content of old_file.txt will be overwritten by new_file.txt requirement 2. apply updates to one folder to another folder: step 1: 1 diff-urN old_dir/new_dir/> dir. patchstep 2: 1 patch-p0 <dir. in this case, the content of old_dir will be overwritten by new_dir.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.