Skip to content

Instantly share code, notes, and snippets.

@pmolchanov
Created December 5, 2015 14:24
Show Gist options
  • Save pmolchanov/687dfc1ad1c7e929e299 to your computer and use it in GitHub Desktop.
Save pmolchanov/687dfc1ad1c7e929e299 to your computer and use it in GitHub Desktop.
Run a command and see what files were changed
find / -xdev -printf '%p\t%c\n' | sort > /tmp/before
# Do some command here!!!
find / -xdev -printf '%p\t%c\n' | sort > /tmp/after
diff -u /tmp/before /tmp/after | less
rm /tmp/before
rm /tmp/after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment