Compare The Contents Of Two Folders With The Diff Command

Mac: Whether you want to sort out duplicates or figure out which folder has certain files and which doesn't, you can use the diff command in the Terminal to find out fast.

The diff command is traditionally used to look at the difference between text files like this:

file-1 file-2

You can also compare the contents of two folders by adding -rq:

diff -rq folder-1 folder-2

Once you enter this command — changing folder-1 and folder-2 to the folders you want to compare— the terminal will spit out a list of differences between them. That's all there is to it! Hit the link below for more on the process. (Similar functionality is available for Linux users.)

Compare two folders' contents in Terminal [MacWorld]


    Adam Dachis.. Revolutionizing the industry one vaginal decoration article and most-well-known unix commands, at a time.

    Fucking well done mate.

    Last edited 05/07/13 12:51 am

      Pretty harsh comment.
      If you're a windows user, download windiff for free. Works well:)

      Get a life.

Join the discussion!

Trending Stories Right Now