How to do “diff -r” of UNIX in Windows Cmd Prompt?

2020-02-18 23:17发布

How do I compare two directories on cmd prompt of Windows m/c? I want equivalent of diff -r of UNIX.

标签: windows cmd
9条回答
欢心
2楼-- · 2020-02-18 23:34

Install Cygwin and you can use diff -r on Windows.

查看更多
ら.Afraid
3楼-- · 2020-02-18 23:37

To compare data with command prompt you can use

COMP /a /l D:\Folder1\data.txt D:\Folder2\data.txt

There can be different options like specific numbers of lines to search and case insensitive search and even you can compare folders with command prompt. Here are other options to compare files and folders with command prompt.

查看更多
看我几分像从前
4楼-- · 2020-02-18 23:47

In Windows there is the fc command. I think diff is way better, but if you want to use only what came with the installation, well, here you go! :)

查看更多
登录 后发表回答