5

I'm using diff to compare two huge volumes, and it is actually comparing many symlinked files over and over.

Is there some way to stop this? I want it to just compare the link itself; not follow it.

Or is there an alternate app that has this option?

4

1 回答 1

3

有一个参数 --no-dereference 没有在手册页中提到,但由 diff --help 列出。

diff -r --no-dereference  dir1 dir2
于 2018-04-03T14:52:24.307 回答