Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
Convert all files in a directory from NFC to NFD:
convmv -r -f utf8 -t utf8 --nfd --notest .
Remember, if you send files to a non-Mac with
rsync
from a Mac, you can use the argument--iconv=utf-8-mac,utf-8
to ensure the files are sent with the proper NFC names to the target; and vice-versa, when fetching from a non-Mac to a Mac viarsync
, you can use--iconv=utf-8,utf-8-mac
.Unfortunately, at least for the Ubuntu version of
rsync
, this argument may not be supported. Really weird. But it is for the native Mac version ofrsync
, as well as the Homebrew version.