Comparing two files in linux terminal October 18, 2022 by Tarik if you have vim installed,try this: vimdiff file1 file2 or vim -d file1 file2 you will find it fantastic.