Skip to content

Instantly share code, notes, and snippets.

@ebeigarts
Created November 30, 2012 18:54
Show Gist options
  • Select an option

  • Save ebeigarts/4177724 to your computer and use it in GitHub Desktop.

Select an option

Save ebeigarts/4177724 to your computer and use it in GitHub Desktop.
Diff file permissions
$ cd a; find . -exec stat -c "%U:%G %a %n" {} \; > ../a-stats.txt; cd ..
$ cd b; find . -exec stat -c "%U:%G %a %n" {} \; > ../b-stats.txt; cd ..
$ diff -ur ./a-stats.txt ./b-stats.txt

Output:

--- ./a-stats.txt	2012-11-30 20:45:43.000000000 +0200
+++ ./b-stats.txt	2012-11-30 20:46:06.000000000 +0200
@@ -178,8 +178,19 @@
 user:group 755 ./trash
-user:group 777 ./trash/cache
+user:group 755 ./trash/cache
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment