Skip to content

Instantly share code, notes, and snippets.

@spyesx
Created October 14, 2019 12:37
Show Gist options
  • Save spyesx/a89a2b83097c1c5ad0e8cf65e584c855 to your computer and use it in GitHub Desktop.
Save spyesx/a89a2b83097c1c5ad0e8cf65e584c855 to your computer and use it in GitHub Desktop.
Find and delete all files starting by ._ but in directories @eadir. Command needed on an encrypted volume on DSM (Synology)
find . -type f -name '._*' ! -path '*@eaDir*' -exec rm -f "{}" \;
# Find and delete all files starting by ._ but in directories @eaDir. Command needed on an encrypted volume on DSM (Synology)
# https://explainshell.com/explain?cmd=find+.+-type+f+-name+%27._*%27+%21+-path+%27*%40eaDir*%27+-exec+rm+-f+%22%7B%7D%22+%5C%3B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment