Will setting a cron job to delete ._ shadow files on a linux share work? I recently tarred up a directory to send to a remote linux system.  When I untarred it, there were ._ files tossed into the target directory.    

I did a search and found articles of people being livid about this in 2003.  

macosx forum on ._ files

What purpose does this serve on Mac OS X and can I tell it not to create these files?

The reason I ask is I am managing network shares where these files will land and am inclined to I set a cron job to periodically delete them. From my understanding this deletion will help since the files result from user-a setting a preference in a resource file, then user-b will be subjected to cross user contamination of preferences.

According to the forum link, if I block their creation, MacOS will freak, but that information is quite stale. Can someone point me to an up to date summary of these files? Will deleting the files have bad consequences when files return to OS X?
Before Mac OS X, the Mac OS used ‘forked’ files, which have two components: a data fork and a resource fork. The Mac OS Standard (HFS) and Mac OS Extended (HFS Plus) disk formats support forked files. When you move these types of files to other disk formats, the resource fork can be lost.

With Mac OS X, there is a mechanism called “AppleDouble” that allows the system to work with file systems that do not have a forked file feature, such as remote NFS, SMB, WebDAV directories, or local UFS volumes. AppleDouble does this by converting the file into two separate files. The first new file keeps the original name and contains the data fork of the original file. The second new file has the name of the original file prefixed by a “._ ” and contains the resource fork of the original file. If you see both files, the ._ file can be safely ignored. Sometimes when deleting a file, the ._ component will not be deleted. If this occurs you can safely delete the ._ file.

Essentially, when you’re working on files located on a network share you end up with duplicates of the file with a “._” prefix.

You can run the following command to clean the files up.

find . -name '._*' -exec rm '{}' ';'


You could also make this into a launchctl or cron task.