After the new MacBook is in hand, it often creates users, logs in, tries out, and then migrates the data. The problem is, when migrating data, if the user's name is the same, although merging, sometimes the user's directory name will automatically add a 1. For example, my name is bred, after the creation of this user, the other Mac called bred of the user all the data are migrated, finished found home named "Bred 1" (the user's login name or bred), for the perfectionist people, very uncomfortable. So the internet search how to modify the user directory name, the result is a bunch of useless information. It's easier to find out for yourself (Apple likes to hide some advanced settings). Here's how:
1. Create a new user with administrator privileges, restart, log in with this temporary user
2, directly open the terminal, under/USER, direct MV need to modify the directory name:
sudo MV 1\ Bred
3, open the system settings of users and groups, right-click the user needs to modify (if locked need to unlock, unlocked in the lower left corner of this window), there will be a high-level options come out, click, Pop-up dialog box with advanced options, there is a user directory, directly pointed to the modified directory can be.
4, restart (do not use logoff, logoff may or may have some environment variables what point to the original directory, will automatically create some files) can.
Change the user's directory name on Mac OS