2019年10月21日 星期一

[ Patch ] diff and patch

diff -u original modded > mod.patch

-N : absent files as empty.
-a : text mode
-r : directory recursively

patch -p N < mod.patch

-p N : strip N leading components from file names
 N=0 if diff and patch were performed under the same directory

沒有留言:

張貼留言

[SSH & SCP] ignore known hosts

Host's key could be changed in many cases. It's a good idea to ignore host's key if no security issues. Add following options ...