Destroyed user account on OS X with dscl; how to restore?
I hope you took a backup of your machine before the sudo command that deleted your account was run. If you have a (Time Machine) backup, you should be able to restore your deleted account &amp; files to a point in time before the deletion occurred. Otherwise, you're probably out of luck.