Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ GNU Linux use diff to generate a patch with the patch     - Embedded Linux Optimization (Programming)

- Linux settings Java_home (Linux)

- Nagios plugin installation tutorial of Nrpe (Linux)

- How to add two-factor authentication for Linux systems SSH (Linux)

- How to contribute code on GitHub uploads (Linux)

- Deploy the project to the server from GitHub (Server)

- Oracle 11g maintenance partitions (Seven) - Modifying Real Attributes of Partitions (Database)

- Android design patterns - state mode (Programming)

- How to download apk file from the Google Play store on Linux (Linux)

- 25 Git Usage Tips (Linux)

- Linux install and configure Heartbeat (Server)

- Use mdadm tool to create software RAID 0 (Linux)

- Linux partition command (Linux)

- Unable to start the network after restart clone a virtual machine (Linux)

- Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- Nagios (centreon) monitoring Linux Log (Server)

- Linux daemon (Linux)

- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)

- Tmux create the perfect terminal management tool under CentOS (Linux)

- Oracle background processes daemons (Database)

 
         
  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:      
 
- Linux server alarms using Java (Server)
- Python several standard types of built-in functions (Programming)
- Android components series Activity (Programming)
- KVM add virtual disks (Linux)
- Linux character device - automatically creates the device nodes and devices (Linux)
- Java framework for parallel study - ForkJoin (Programming)
- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Ubuntu (Linux)
- RHEL6 install Python and other packages from source (Linux)
- Linux kernel RCU (Read Copy Update) lock Brief (Linux)
- Oracle 11g user rights management study notes (Database)
- Using packet capture libpcap be reconciliation package in Ubuntu 14.04 64 bits (Linux)
- Linux account management add relevant directives (Linux)
- CentOS 6.5 installation and simple configuration Nginx (Server)
- Java Cookie Comments (Programming)
- Oracle archive log size than the size of the online journal of the much smaller (Database)
- Change all child files and subdirectories in the owner permissions Ubuntu (Linux)
- Between the two to achieve the main MySQL database synchronization from (Database)
- Repair Raspbian Encountered a section with no Package (Linux)
- Linux, Apache Web site security settings (Linux)
- Why is the ibdata1 file growing in MySQL? (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.