Skip to content

Instantly share code, notes, and snippets.

@danielbwa
Created January 14, 2013 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbwa/4533343 to your computer and use it in GitHub Desktop.
Save danielbwa/4533343 to your computer and use it in GitHub Desktop.
# compare 2 dirs, remove -q to see full output
diff -rq dirA dirB
# create tar and exclude dir
tar -cvf name.tar --exclude "/full/path/dir/exclude_this" /full/path/dir/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment