You cannot rename a home folder while you are logged into that account. You need a neutral "third party" account to perform the surgery.
Now that you are in the temporary account, you have the freedom to modify the other account without the OS fighting you. mac change user folder name
This step links the user account login to the newly renamed folder. You cannot rename a home folder while you
When you log in as “john,” the system reads that record and sets the $HOME environment variable to /Users/john . Every subsequent process—from Finder to a background launchd daemon—references this absolute path. When you double-click a document, the application resolves ~/Documents to /Users/john/Documents . The tilde ( ~ ) is a lie of convenience; under the hood, it is a concrete, immutable stone. This step links the user account login to