I have an admin account which has a typo in it's account name and I wanted to fix it. So I created a different admin account so that I can rename the account name and home folder name from that account.
But when I logged in from the second admin account, my macbook air (macOS mojave) is exhibiting weird behavior, for example, the dock has lost its animation, taping on trackpad doesn't serve the purpose of click and I do not see Macintosh HD in the finder.
I tried to rename the home folder from the terminal like so:
sudo mv my-old-home my-new-home
But no luck. It says operation not permitted. How can I fix this?
/Users/
directly?