Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ GNU Linux use diff to generate a patch with the patch     - Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- Encrypted with GnuPG signature to verify the authenticity and integrity of downloaded file (Linux)

- Python 3.5 await / async (Programming)

- Oracle to start to solve the error ORA-27102 (Database)

- I like Linux Security (Linux)

- Ubuntu derivative version of the user and how to install SmartGit / HG 6.0.0 (Linux)

- Use scripts easily install the latest Linux kernel in Ubuntu (Linux)

- Easy to get hidden administrator account (Linux)

- Ubuntu will be written in a command file, executable file, source command (Linux)

- Linux and Windows virtual machine shared folders ---- Linux install VMware tools (Linux)

- 11 examples in Linux df command (Linux)

- Linux / Unix system-level IO (Linux)

- The callback function used in C ++ (Programming)

- CentOS / Linux NIC set IP address configuration (Linux)

- Build RPM package uses Docker mirror (Linux)

- Share and show your code on GitHub (Linux)

- Ubuntu 15.04 / 14.04 install Ubuntu After Install 2.6 (Linux)

- To compile and install Redis Linux and master-slave replication configuration (Database)

- OpenGL Superb Learning Notes - New Patterns (Programming)

- C # / iOS / Android Universal Encryption and decryption (Programming)

 
         
  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
     
         
       
         
  More:      
 
- Vim useful plugin: EasyGrep (Linux)
- The source code compiler installation Nginx 1.8.0 under Ubuntu 14.10 (Server)
- MySQL restart process can not be taken lightly (Database)
- How do I use Linux development environment (Linux)
- Commentary Apache + Tomcat + JK implement Tomcat clustering and load (Server)
- Linux5.8 installed phpMyAdmin was unable to issue related php-mcrypt (Database)
- Python several standard types of built-in functions (Programming)
- Redis configuration file interpretation (Database)
- How to contribute code on GitHub uploads (Linux)
- VMware virtual machine Ubuntu install arm-linux-gcc cross-compiler environment (Linux)
- Java static code analysis tool Infer (Programming)
- Alternative methods of intrusion bundled executable file new thinking (Linux)
- How to install Eclipse Luna IDE on CentOS 7 / RHEL 7 (Linux)
- Tsung first test installation (Linux)
- Kafka + Log4j log implement centralized management (Server)
- Spacewalk Linux system configuration and installation (Linux)
- Linux System Getting Started Learning: Disable HTTP forwarding wget in (Linux)
- To create a Linux server network security (Linux)
- Java string equal size comparison (Programming)
- Binder began to talk about inter-process communication mechanism from Android AIDL (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.