Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GNU Linux use diff to generate a patch with the patch     - Linux using RAID how to use Mdadm Tool Management Software RAID (Linux)

- Ubuntu deploying Solr (4.4) to Tomcat (7.0.53) (Server)

- RealVNC Server 5.2.3 Installation and Configuration In Fedora (Server)

- Linux system versions organize local root password cracking method (Linux)

- Eclipse distributed management using GitHub project development (Linux)

- How to use Quagga BGP (Border Gateway Protocol) router to filter BGP routing (Linux)

- How to use the command line ftp upload and download files (Linux)

- Figlet use (Linux)

- shell script: a key to install LAMP, LNMP script (Server)

- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)

- RedHat virtual machine to install VMware Tools (Linux)

- C ++ sequence containers basics summary (Programming)

- Efficient Linux Shell - Shell special characters Summary (Linux)

- Learning how to teach safety system to prevent your own IP leakage (Linux)

- VirtualBox modify the size of the virtual machine disk VDI (Linux)

- File sharing and fork function (Programming)

- MongoDB3.0.6 wiredtiger MMAPv1 (Database)

- Simple configuration shell scripts virtual machine environment experiment (Linux)

- CentOS 7 source code to compile and install Nginx process record (Server)

- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)

  GNU Linux use diff to generate a patch with the patch
  Add Date : 2017-08-31      
  In GNU Linux system programming, often used diff to generate a patch with the patch and patch, the original in this regard do not understand, it is difficult to find, identify and then did nothing.

1, the use of diff to generate patches;

diff is a file comparison under Linux commands, parameters can not say here, direct man on the line, not only can compare files, you can also compare two directories, and you can generate a patch file differences, in fact, a patch commands. Use as follows:

diff -rNu a b> diff.patch

Wherein, a directory or file is old, b is a directory or file was last modified, the resulting patch file to patch.

2, the use of patch patch;

Parameters See man manual patch command, when using a patch to another patch directory as follows:

patch -p0 < diff.patch
- RHEL6.5 install the latest version of Vim and increase support for the Python2.7.5 (Linux)
- Android webView URL redirects affect goBack () (Programming)
- Linux garbled file delete method (Linux)
- C / C ++ various data types Conversion Summary (Programming)
- 20 Unix / Linux command skills (Linux)
- Linux Basics Tutorial: Combining awk delete data before the specified date hdfs (Linux)
- VirtualBox CentOS is configured as a local disk mirroring software source (Linux)
- Share Practical Tutorial GitHub (Linux)
- JBPM6 Tutorial - taught you how to install JBPM (Linux)
- Modular JavaScript (Programming)
- Oracle 12C modify spfile path (Database)
- Spring Data JPA @EnableJpaRepositories configuration in detail (Programming)
- Oracle Character Set Summary (Database)
- User rights management system under Linux (Linux)
- Linux Log Clear (Linux)
- OpenGL Superb Learning Notes - Fragment Shader (Programming)
- When Vim create Python scripts, vim autocomplete interpreter and encoding method (Programming)
- How to make GRub instead of the default Ubuntu software center (Linux)
- Java 8 perspective annotation types (Programming)
- iOS9 new feature - stacked view UIStackView (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.