

DS_Store ~/Desktop/Docs ~/Docs > diff.txt open diff.txt To do that, change the command to something like this: diff -rq -x. If you have a lot of changes to view, you can redirect the results to a text file and check later at your leisure. DS_Store ~/Desktop/Docs ~/DocsĪs you can see, it displays the result in a nice easy to read format. DS_Store files that Mac OS X throws everywhere, so this was my command. I wanted a way to exclude those annoying.

In its simplest form, you type the command like this: diff -rq firstfolder secondfolder I found this helpful Macworld article that shows how to compare two folders using the Terminal in Mac OS X. I am in the process of moving my paperless documents to a new location, and am taking that opportunity to clean up my folder structure a little bit.Īfter getting everything set up in the new location, I wanted a way of comparing the contents to the old directory tree to see if there are any glaring omissions/red flags.
