dot_clean is a command-line utility in macOS used to clean up the '._' files created when transferring files from a non-Mac file system (such as NTFS or FAT32) to a Mac file system (such as HFS+ or APFS). These files are hidden and contain metadata about the original file, such as icon positions, resource forks, and extended attributes. The dot_clean command removes these files, helping to avoid clutter and potential compatibility issues.

Mac dot_clean Command: Remove Hidden Files & Improve Compatibility