Forrest logo
tool overview
On this page you find all important commands for the CLI tool dot_clean. If the command you are looking for is missing please ask our AI.

dot_clean

Dot_clean is a command-line tool available on macOS that helps in cleaning up the Thumbs.db files and other related files created by the Windows operating system. It is primarily designed to clean up network volumes or directories copied from a Windows machine.

The purpose of dot_clean is to remove the additional metadata and extended attributes that macOS adds to files when they are copied or moved from a Windows-based network or drive. These files may appear as "dot underscore" files on macOS, suffixed with the original filename.

This tool ensures that the copied directory or volume is free from the unnecessary Windows-specific files and metadata while maintaining the integrity of the original data. Dot_clean recursively locates these dot underscore files and removes them, improving the cleanliness of the copied files and directories.

It is used from the macOS terminal by simply typing "dot_clean" followed by the path to the directory or volume that needs to be cleaned. The command supports additional options like "-m" to merge the extended attributes instead of deleting them, or "-n" to perform a dry run without actually removing any files.

Dot_clean is particularly handy when dealing with shared drives or network storage where files are frequently copied between macOS and Windows systems, providing an efficient way to clean up artifacts left by file transfers.

List of commands for dot_clean:

  • dot_clean:tldr:16d77 dot_clean: Only delete `._*` files if there's a matching native file.
    $ dot_clean -n ${path-to-directory}
    try on your machine
    explain this command
  • dot_clean:tldr:4fea6 dot_clean: Don't recursively merge all `._*` in a directory (flat merge).
    $ dot_clean -f ${path-to-directory}
    try on your machine
    explain this command
  • dot_clean:tldr:92a93 dot_clean: Merge and delete all `._*` files.
    $ dot_clean -m ${path-to-directory}
    try on your machine
    explain this command
  • dot_clean:tldr:e9172 dot_clean: Follow symlinks.
    $ dot_clean -s ${path-to-directory}
    try on your machine
    explain this command
  • dot_clean:tldr:f5610 dot_clean: Print verbose output.
    $ dot_clean -v ${path-to-directory}
    try on your machine
    explain this command
  • dot_clean:tldr:f7872 dot_clean: Merge all `._*` files recursively.
    $ dot_clean ${path-to-directory}
    try on your machine
    explain this command
tool overview