-1

I am trying to find the difference between two files which are at different paths. For example, abc.txt is at home folder and the abc2.txt is at desktop in ubuntu os

How can I find the difference between these two files "abc.txt and abc2.txt" through command line?

This is the command I tried in my system

diff abc.txt /home/abc/desktop/abc2.txt
Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105

1 Answers1

2
diff abc.txt /home/abc/desktop/abc2.txt

Make sure that terminal place shows same place with abc.txt. pwd helps you to see current location.