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 :(.
ls -R
to check the file list I am about to recursively stamp on, even when regexing to get the file list. – bu5hman Dec 10 '17 at 15:01