remove .._. files

Discussion in 'macOS' started by MrFusion, May 30, 2011.

  1. MrFusion macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #1
    How can I forcibly remove .._. files from my time capsule?
    These appeared after a temporary backup of a windows usb drive. Now I want to get rid of them. It is not tidy and driving me nuts. They are over 23000 of them. :mad:

    sudo rm -rf .._.* is not working.
     
  2. r0k macrumors 68040

    r0k

    Joined:
    Mar 3, 2008
    Location:
    Detroit
    #2
    Dot underscore files are a curse. OS X creates them all over the place to contain "meta data" and they are most commonly created on Windows volumes which OS X information is copied to. If they are sitting on your time capsule, chances are they were copied there and really originated on whatever information was being copied to your time capsule. Check there first. In finder, make sure show hidden files is enabled.

    As for deleting them, it sounds like you are on the right track with the sudo rm but anything starting with .. is usually the parent directory. Are you sure that's the file name and it's not simply ._something.something? In that case sudo \rm -rf ._* should work. But rm -rf .._.* might not find anything.
     
  3. MrFusion thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #3
    Unfortunately, this is not working. Also, these files are zero kb.

    sudo rm -rf .._.Trashes.*
    -bash: /usr/bin/sudo: Argument list too long

    The use of wildcards ?* has no effect either.
     
  4. bigwig macrumors 6502a

    Joined:
    Sep 15, 2005
    #4
    Test Wildcard:
    find . -name '..*_*' -print0 | xargs -0 echo

    Run Delete:
    find . -name '..*_*' -print0 | xargs -0 rm -rvf
     
  5. MrFusion thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #5
    Finds the files. :)

    Does not remove them. :(
     
  6. bigwig macrumors 6502a

    Joined:
    Sep 15, 2005
    #6
    What's the error message from rm?
     
  7. MrFusion thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #7
    Nothing. No messages at all.
     

Share This Page