Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

Neil Gee

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Compare the diff of 2 folders in the Command Line

August 15, 2016 Leave a Comment

You can compare the difference of files in two folders in the Command Line by using the diff command.

With folders you use rq as an argument and pass in the 2 folder names on the command line like so…

diff  -rq folder_1 folder_2

You will get notifications on what same corresponding  files are different, as well as notifications of what  files are unique in each folder. Once you know what files are different you then can run the diff file command on those to see the actual difference.

With files you can pass these in to the Terminal/command line  with diff like so…

diff file_1 file_2

For files you can also use the great online tool Diff Checker.

Share this:

  • Twitter
  • Google
  • Facebook

Related

Cats: osx tips, WebDev

Subscribe

Coolest Guides on the Planet
Lynda.com Online Training Videos

Tags

apache backup baseband Bing boot Coolest Guy on the Planet Coolest Guy Planet cpanel css custom database drupal el capitan error Firmware Google image instadmg ios iphone jailbreak keys Keywords lion mac macos sierra mysql OSX PageRank php private public Rank Rank Checker ranking remote rsa SEO SERPS shell ssh terminal Twitter unstoppables Yahoo
Get DesktopServer
StudioPress Premium WordPress Themes

Donate a Beer to the Coolest Guides

Copyright © 2018· Neil Gee - All Rights Reserved - Hosted by Server Pilot and Vultr