This question already has an answer here:
- How to revert chown command? 5 answers
Was messing around with an external drive and wanted to change the permissions of a folder. However, I accidentally ran
sudo chown myuser -r /. I have never felt so dumb in my life. I immediately realised what I had done and canceled it, but it was too late.
I'm on Arch. How screwed am I. Is this fixable or is it a lesson to be remembered?
Kids this is why you don't mess with recursive commands when sleepy :(.