etresoft,
Maybe you can help me.. I'm pulling out my hair. I had my brand new MacBook Pro replaced today because of a faulty display, and spent the day migrating.
Long story short, after restoring and migrating shenanigans, I have everything back on my new computer, BUT... I need to change only my Home Folder name, and it has a space AND a number in it! Don't ask me how this happened 😟
When I go into Users and Groups, and then right-click on my account and go to Advanced, it shows me that my "Account name" is all one word, basically "firstlastname", but my "Home Directory" folder is "firstlastname 1" (with a space). I think this was a secondary account that Migration Assistant created, but somehow my actual account name is correct... and yet the Home Directory has a space and a 1 😟
So all I need to do is change the Home Directory name (because Dropbox is looking for it to be "firstlastname" and it no longer is, among a myriad of other issues). But I don't think I can use your tip in order to do this in the Terminal if there's a space in the name, can I?
I appreciate any help anyone can give me. This all stemmed from Apple's shoddy workmanship: a dead pixel in a brand new MBP, and then when they replaced the screen, the Wi-Fi died and they said the antenna in the display was faulty, hence they gave me this new machine.
Thank you!!