Skip to content

Instantly share code, notes, and snippets.

@olekhy
Created December 30, 2019 15:51
Show Gist options
  • Save olekhy/b3c402abcc327f8e810490ce5dfa66ed to your computer and use it in GitHub Desktop.
Save olekhy/b3c402abcc327f8e810490ce5dfa66ed to your computer and use it in GitHub Desktop.
working with files on google backup tackeout

install tool to find duplicate files sudo apt install fdupes

find duplicates fdupes firstDir --recurse secondDir > duplicates

delete empty directories find ./ -empty -type d -delete

display nuber of files groped by the extension find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort | uniq -c | sort -rn

delete json files recursive in current directory find ./ -name "*.json" | tr '\n' '\0' | xargs -0 rm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment