Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GNU Linux use diff to generate a patch with the patch     - Linux create and delete user step (Linux)

- WordPress plug-ins installed in Ubuntu, enter the subject of FTP and not create directory problem (Server)

- cursor_sharing induced error ORA-00600 (Database)

- Understanding Linux firewall Iptables (Linux)

- To create a secure network firewall with iptables Under Linux (Linux)

- Linux filtration empty file command summary (Linux)

- ThinkPad X220 Ubuntu 14.10 installed on fingerprint recognition (Linux)

- MySQL use the integer type (Database)

- OpenStack / Dev stack with neutron on Ubuntu 14.04 (Server)

- Linux compiler installation Redis (Database)

- Thinking in Java study notes - Access modifiers (Programming)

- React Getting Started Tutorial (Linux)

- Java String and StringBuffer and StringBuilder Comments (Programming)

- MySQL Basic tutorial: About varchar (N) (Database)

- Django1.8 return json json string and the string contents of the received post (Programming)

- Varnish configuration language VCL and its built-in variables (Server)

- Use Linux built-in firewall to improve network access control (Linux)

- Android first line of code study notes (Programming)

- JITwatch installation under Linux (Linux)

- Binary search -Java achieve (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
- Lucene Getting Started Tutorial (Server)
- To access an Oracle database using Instant Client (Database)
- Linux 64-bit porting (Programming)
- Linux System shutdown procedures (Linux)
- Tomcat session clustering and server session (Server)
- ORA-04031 Error Resolution (Database)
- 29 practical examples Linux system / network administrator of nmap (Linux)
- Ubuntu 14.04 install AMD graphics driver is fully dual monitor solution (Linux)
- Linux bash: scp: command not found the problem (Linux)
- CentOS 7 Change Hostname (Linux)
- Ubuntu 14.04 compile and install Apache (Server)
- How to clear the v $ archived_log view expiration information (Database)
- Python2 ---- function using dictionaries (Programming)
- Android components series Activity (Programming)
- Spring MVC Exception Handling (Programming)
- Android Studio quick overview of Gradle (Programming)
- VMware11 virtual machine Ubuntu14.10 system partition sda1 disk expansion (Linux)
- Usage sed some of the parameters (Linux)
- Deb package installation method under ubuntu (Linux)
- Oracle local user login authentication fails ORA-01031 insufficient privileges (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.