Published on

TIL: 'dot_clean' to remove macOS specific files

Authors
  • avatar
    Name
    Robert
    Twitter
  • Site Reliability Engineer at Mozilla

When switching between multiple systems including macOS you may have notices thoses strange looking files starting with ._.

They regularely break Switch firmware upgrades and might be in the way during other filesystem operations as well.

There are multiple solutions out there in the wild including removing them or moving them away using rsync. The most convinient way on macOS is using the dot_clean command which is shipped with macOS by default.

It merges the metadata with the normal files and removes all the dotfiles. After that you can just copy you stuff around as usual. See the man page for more details.