Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

DOT_CLEAN(1)              BSD General Commands Manual             DOT_CLEAN(1)

     dot_clean -- Merge ._* files with corresponding native files.

     dot_clean [-fmnsv] [--keep=[mostrecent|dotbar|native]] [dir ...]

     For each dir, dot_clean recursively merges all ._* files with their corresponding native files accord-ing according
     ing to the rules specified with the given arguments.  By default, if there is an attribute on the
     native file that is also present in the ._ file, the most recent attribute will be used.

     If no operands are given, a usage message is output.  If more than one directory is given, directories
     are merged in the order in which they are specified.

     -f      Flat merge.  Do not recursively merge all directories in the given dir.  This is off by

     -h      Help. Prints verbose usage message.

     -m      Always delete dot underbar files.

     -n      Delete dot underbar file if there is no matching native file.

     -s      Follow symbolic links.  This will follow symbolic dot underbar files when they are found.

     -v      Print verbose output.

             The default option.  If an attribute is associated with a data fork, use that.  Otherwise, use
             information stored in the AppleDouble file.  Note that the native fork's data is preferred even
             if the data in the AppleDouble file is newer.

             Always use information stored in the AppleDouble file, replacing any extended attributes asso-ciated associated
             ciated with the native file.

             Always use the information associated with the data fork, ignoring any AppleDouble files.

     The following is how to do an dot_clean merge on the mounted volume test, always using the dot underbar

           dot_clean --keep=dotbar /Volumes/test

     The dot_clean utility exits 0 on success, and >0 if an error occurs.

     None known.

BSD                              Sept 27, 2012                             BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.