Nemo

Nemo 关注TA

路漫漫其修远兮,吾将上下而求索。

Nemo

Nemo

关注TA

路漫漫其修远兮,吾将上下而求索。

  • 加入社区3,284天
  • 写了1,496,113字

该文章投稿至Nemo社区   Linux  板块 复制链接


diff 比较两个文件夹

发布于 2017/08/09 11:24 2,456浏览 0回复 411

$ diff -urNa dir1 dir2

-a  Treat  all  files  as text and compare them    
    line-by-line, even if they do not seem to be text.

-N, --new-file
    In  directory  comparison, if a file is found in
    only one directory, treat it as present but empty
    in the other directory.

-r  When comparing directories, recursively compare
    any subdirectories found.
-u  Use the unified output format.

本文标签
 {{tag}}
点了个评