I just cd to "/" on a Mac and accidentally entered "rm -R *". I know the command means delete everything in "/" but I wasn't sudoing, should I reinstall Mac OS? Or does a mac protect against this sort of things.
I don't agree with Yitzchak's answer.
If you run
First, you will delete applications you've installed by dragging them to
I would strongly advise you to restore from your backup (you use Time Machine, right?) to a previous point and also check if you miss any important files in your home directory.
If you ran the command without
You may have inadvertently removed files to which your user had write permissions to considering you passed the
A re-install shouldn't be necessary as @Yitzchak mentioned as your user should not have sufficient permissions to damage critical system files. That being said, if you do experience any odd-behavior or instability, it may behoove you to re-install.