I am diff-ing two files and it scrolls off too much and I cannot see what was the diff at the start of the file. Is there a way for me to do diff and scroll line-by-line by pressing space or something or scrolling page-by-page just like the more command does?

有帮助吗?

解决方案

You should be able to pipe the output of diff to more, like so:

diff a.txt b.txt | more
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top