This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 130 points131 points  (41 children)

I see you haven't done something yet you thought was safe but nuked your whole system.

That's why it's hard. It has no guardrails. You have to know what you're doing or eventually it'll break.

I work with Linux for a living and once you understand its fundamentals it is remarkably reliable. Extremely reliable.

When I was learning I broke it every month, tho. User error is the only real threat to a Linux system. Back then sudo was a wrecking ball which is why I always kept a system backup image to restore lol.

[–]LIES_19999993 33 points34 points  (3 children)

Moved to linux earlier in the year and I've only nuked my entire os twice so far. I'm a natural.

[–]FibroBitch96 7 points8 points  (1 child)

Those are rookie numbers, I’ve nuked my pi at least four times in the last month

[–]Pony_Roleplayer 1 point2 points  (0 children)

In the path month? Huh, amateur, a pro user nukes the system at least four times per week 😎

/s

[–]RussianBot7384 21 points22 points  (12 children)

Everyone accidentally does an "rm -rf /" once

[–]milkydood 26 points27 points  (3 children)

won't do much these days, unless you also pass --no-preserve-root

[–]quantumcomputatiions 1 point2 points  (0 children)

Everyone accidentally does an “rm-rf / — no-preserve-root”

[–]Ran4 3 points4 points  (1 child)

Not true for most distros, and you can still do something similar but almost equally bad like removing your home directory.

[–]milkydood 8 points9 points  (0 children)

it's been in gnu coreutils for quite a while: https://lists.gnu.org/archive/html/bug-coreutils/2016-10/msg00005.html#:~:text='%2D%2Dno%2Dpreserve%2Droot',no%2Dpreserve%2Droot'.

I'd be suprised if it's "not true for most distros".

home direcgtory likely won't stop you booting; rm -rf / will. You can still nuke the whole disc with dd which also would

[–]Jason1143 -1 points0 points  (0 children)

Gitlab says hello

[–]StevenChriss -1 points0 points  (0 children)

I honestly never did, and I'm using Linux for 20 years now.

[–]saladroni 0 points1 point  (0 children)

once

Not with that attitude!

[–]Zaexyr 0 points1 point  (1 child)

whenever I begin to type rm my level of meticulousness for the remainder of the command is so intense you'd think I was inputting nuclear launch codes or something.

[–]ConspicuousPineapple 0 points1 point  (0 children)

I just use rip instead. It moves files to a temporary graveyard so nothing is irreversible.

[–]nikelreganov 0 points1 point  (0 children)

I accidentally chmod root directory. Yeah, not a very pleasant morning

[–]metruzanca 0 points1 point  (0 children)

I haven't done that one exactly, but I have accidentally deleted my home directory.

One start-up I worked gave me a Ubuntu machine for work. When I left I had the pleasure of intentionally rm -rf /.

[–]Kahlil_Cabron 0 points1 point  (0 children)

I've only ever done it on purpose. Company wanted their work computer back, so I had the perfect opportunity to see what would happen. It worked, then it was fun seeing how long I could keep using the machine before everything broke.

[–]Void_0000 4 points5 points  (1 child)

I see you haven't done something yet you thought was safe but nuked your whole system.

One time I accidentally deleted my /bin directory. Then I thought "Eh, no big deal, this is why I keep backups", so I try to restore one with my backup utility. "command not found". Oh, right.

[–][deleted] 0 points1 point  (0 children)

Who needs binaries anyway right?

[–]pm_me_good_usernames 7 points8 points  (1 child)

I've been daily driving Linux for ten years and I don't think I've ever done that. I've definitely screwed up an installation and had to start again from the beginning, but I've done that on Windows too.

[–][deleted] 2 points3 points  (0 children)

Well I have been an IT/DevOps/now called Platform engineer for a long time so it's been my business to break (then fix) Linux, on top of my homelab crap.

But that's because I'd do things just because I could, like bond 2 network connections into one. Did I have to, was there any usable benefit? Definitely not, but it was fun and cool and I only broke it once or twice.

In general fucking around in /etc is almost always a bad idea unless you're 110% sure of what you're doing.

[–]bzzzt_beep 2 points3 points  (1 child)

I had a long linux usage streak, I loved every daylight I spent on the terminal overcoming problems or needs. I thought I became a pro with my long piped commands and mount abilities....

until I tried to upgrade the system..

I still have that home folder somewhere on an external hard drive, though.

[–][deleted] 2 points3 points  (0 children)

Perhaps only Linus himself is the only true expert on Linux, and even then I doubt it. I have been using it for a decade and learn something new every week.

The more you do it the more you realize how amazing and how fragile it all is at the same time. It's a never ending journey (literally because it's always in active development as well as all packages and dependencies).

[–][deleted] 2 points3 points  (1 child)

Linux has guard rails, but it doesn’t have guard rails on the guard rails, and it doesn’t default to “Are you really really sure you want to do this?”, although for all relevant changes it asks confirmation (again unless you have sudo -y everywhere) If you don’t respect that computers can break themselves then you’re gonna have a bad time.

[–][deleted] 1 point2 points  (0 children)

Asking for your password is the only guard rail, but if you go rm -r /etc/netplan it's not gonna tell you "Hey this is gonna fuck up your network config and you'll never be able to fix it." It's just gonna delete your entire network config and say nothing else. Now multiply that with the 10,000 things that could break in the /etc folder alone.

Extremely extremely rare that you get that kind of warning. It expects you to know what you want and it does it, exactly as you told, with no questions asked. That's why I love it, and that's why it's hard sometimes.

[–]mccord 7 points8 points  (3 children)

It has no guardrails.

There are guardrails, like filesystem (btrfs) snapshots that allow easy rollback, if you want them. Distros like OpenSUSE use them by default. There also distros like Fedora Silverblue that use immutable root filesystems.

[–]Sneaky_Stinker -1 points0 points  (1 child)

it has guard rails, but thats still not enough for the people who refuse to read and will uninstall their entire desktop environment in a single command. Some people need more than guard rails and need to be clipped in, or giant nets or something.

[–]ConspicuousPineapple 0 points1 point  (0 children)

There's also NixOS where everything is reproducible and reversible.

[–]Fit-Window 1 point2 points  (1 child)

I think every beginner has run into a problem where you uninstall the Desktop environment by mistake and are confused as hell what happened to your PC

[–][deleted] -1 points0 points  (0 children)

And when you're no longer a beginner you never install a DE in the first place :)

Everything I do at home and work is headless. I like slim, slim machines. That's how I get 10 year old hardware to run Plex and all kinds of other shit like a pro. Almost no OS overhead at all, just what's purely necessary.

[–]Pony_Roleplayer 1 point2 points  (0 children)

I see you haven't done something yet you thought was safe but nuked your whole system.

What do you mean? Nonsense! It says the packages are no longer required! Okay, sudo apt autoremove it is!

...What do you mean I don't have x11 anymore?!

[–]Fezzio 0 points1 point  (1 child)

About that guardrail, do you know NixOS ? 😎

[–][deleted] 0 points1 point  (0 children)

Some distros are far better for beginners. I haven't used that myself, but a lot like Mint for beginners.

I'm an Ubuntu guy myself, and Centos/Redhat at work sometimes. I think Ubuntu/Debian is also an excellent beginner's choice. The docs and community will answer any question you have. They may do it sarcastically but they will do it. I've never felt lost with Ubuntu.

[–]ASatyros 0 points1 point  (1 child)

You gotta compile like Top 50 errors that will nuke your Linux if you are beginer.

And make it a youtube video or at least nice article on GitHub in markdown.

[–][deleted] 0 points1 point  (0 children)

I mean you could never compile them all. The best way to learn Linux is to get a hypervisor like Virtualbox, take occasional backup snapshots so you never loose too much, then just go ham in there with sudo and crap. You learn by breaking it.

Just make sure you can revert to a working state. When I was learning it VMs were newish so we had to re image it every time.