Mac OS X: how to get rid of ._ files on USB drive

._ files are created by the OS. It is annoying when those files are created on a portable USB drive then opened on other operating systems.

Can we avoid creating them on Mac OS?

The answer is NO.

How can we get rid of them then?

There are many ways to find & remove them:
  • Method 1: Use find command in Terminal:
    find /Volumes/USB-DISK -name '._*' -type f -delete
  • Method 2(Recomended): Since Mac OS 10.5 Leopard, it come with a command line utility dot_clean to get rid of the ._ files. Run the following command in Terminal will remove all the ._ files in /Volumes/USB-DISK:
    dot_clean /Volumes/USB-DISK

See also

No comments:

Post a Comment