Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ GNU Linux use diff to generate a patch with the patch     - Encrypted with GnuPG signature to verify the authenticity and integrity of downloaded file (Linux)

- Docker study notes (Server)

- Installation Enpass secure password manager on Ubuntu (Linux)

- The YUM package management under Linux (Linux)

- Django 1.8 TEMPLATE_DIRS configuration and STATICFILES_DIRS (Server)

- Fedora 22 installation and configuration optimization (Linux)

- Oracle database, some basic grammatical structures (Database)

- Asynchronous communication mechanism between the Android source code analysis thread (Programming)

- CentOS 6.5 Linux System Customization and Packaging Quick Implementation Script (Linux)

- Linux asynchronous read documents by AIO (Programming)

- Alternative methods of intrusion bundled executable file new thinking (Linux)

- Oracle Migration partition table (Database)

- How to handle special characters in JSON (Programming)

- Linux5.8 installed phpMyAdmin was unable to issue related php-mcrypt (Database)

- Linux system boot process detail (Linux)

- LVM mirrored logical volume to achieve (Linux)

- CentOS 6.5 minimal installation and configuration VMware tools (Linux)

- Linux platform NTOP Installation and Configuration (Linux)

- Android using SVG vector graphics to create cool animation effects (Programming)

- Linux 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
     
         
       
         
  More:      
 
- Spring + MyBatis Multi data source switching (Database)
- DupeGuru- find and remove duplicate files (Linux)
- Upgrading from Fedora 20 to 21 (Linux)
- The method of MySQL two kinds of incomplete recovery (Database)
- Add local search to your Android app (Programming)
- Transfer MySQL database to MariaDB (Database)
- Git Tutorial Comments (Linux)
- Struts2 interceptor simulation (Programming)
- Ubuntu Locale configuration problem solving Can not set LC_CTYPE (Linux)
- Under CentOS using yum command to install the Task Scheduler crontab (Linux)
- Ubuntu under shadowsocks configuration instructions (Linux)
- Iptables small summary (Linux)
- Linux firewall anti-hacker disguise malicious attacks (Linux)
- Intruder tools Knark Analysis and Prevention Linux environment (Linux)
- 12 kinds of detection of CPU information on a Linux system tools (Linux)
- Linux iptables port mapping settings (Server)
- C language to view various types of data size (Programming)
- Linux garbled file delete method (Linux)
- Linux, grep, sed usage (Linux)
- Ubuntu Backup and Recovery (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.