34
Made a big(?) mistake with mv /*/*/* ./
(lemmy.ml)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I think there is a typo in the path in the body of your post, or?
Yeah, I see, command wildcard asterix being markdown bold. Original command:
You moved everything down 3 dirs from root to your working dir.
Ouch ... feel so stupid.
I once ran 'chown -R root:root /' in a misguided attempt to solve some permissions issues I was having. 0/10, do not recommend. It turns out a lot of system things aren't root owned...
Running a stupid command and learning from it is part of the learning process.
If it makes you feel better, I've dealt with so many servers where someone ran chmod -R 777 / thinking it'd solve all of their permission issues.
Anything user accessible, so not that bad. Restore one backup up and move from there.
What you have in title of the post, body of the post and in this screenshot all disagree with each other.
Ah, keen eye, corrected the title and body text to match the screenshot. (From terminal history so I think thats what I actually ran)
Use backtics to quote code fragments. Tripple backtics to block quote. You should be able to edit your post.
Oh that worked, thnx!!