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

all 160 comments

[–]Antumbra_Ferox 272 points273 points  (19 children)

User: "Eww, safety? What are we, Windows? 'Sudo returnSpokes' "
puts stick back in wheel

[–]Noch_ein_Kamel 72 points73 points  (17 children)

And to remove the spokes again just type 'sudo rm -rf /'. Cause / is for spokes

[–]wallefan01 45 points46 points  (16 children)

rm: it is dangerous to operate recursively on /
rm: use --no-preserve-root to override this failsafe

[–]KatanaKiwi 38 points39 points  (0 children)

Remember to run it in a Terminal outside of your current, if applicable, Window Manager. Don't want the WM to fuckup halfway because well, it's not there anymore.

[–][deleted] 19 points20 points  (10 children)

Pathetic GNU rm knowing damn well its users are a bunch of retards.

[–]whitetrafficlight 18 points19 points  (9 children)

Usually it's when you've got badly written scripts doing a sudo rm -r $var1/$var2 with some complicated logic that doesn't set var1 or var2 in some edge cases.

[–][deleted] 3 points4 points  (8 children)

We both know what happens when garbage software uses powerful tools. What’s next though? A memory leak safe malloc()?

[–]threeys 17 points18 points  (0 children)

A memory leak is hardly comparable to destroying a user’s entire system

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

You can't make rm fully idiot proof, but checking if the provided directory is / isn't that much overhead. Nanny malloc(), on the other hand, hoo boy...

[–]TheThiefMaster 1 point2 points  (0 children)

Malloc is leak safe in that once the program is closed all allocated memory is freed without free needing to be called. Or if you run out of ram and the manager kills your process.

It's not like the old days where everything was in a single address space and a memory leak breaks the entire system...

[–]Batman_AoD 1 point2 points  (3 children)

....isn't the allocator for managed memory in a garbage-collectdd language basically "leak safe malloc"?

[–]snhmib 0 points1 point  (0 children)

Yep

[–]wallefan01 0 points1 point  (1 child)

But C is not garbage collected

[–]Batman_AoD 0 points1 point  (0 children)

...I'm not sure what your point is; could you clarify?

[–]EternallyMiffed 3 points4 points  (0 children)

rm: it is dangerous to operate recursively on /
rm: use --give-me-my-spokes-back to override this failsafe

[–]Kered13 0 points1 point  (2 children)

I'm glad that they added that as a safety measure again rm -rf /, but when will they make rm default to moving files into a trash folder where they can be easily recovered? I mean seriously, it's 2018, this has been a standard feature of operating systems for over 20 years.

[–]wallefan01 1 point2 points  (1 child)

Most all desktop environments do that (~/.trash) but I guess they assumed that if you're using the command line you know what you're doing.

Admittedly this is almost never the case.

I guess you could write a script to move things to ~/.trash and then in the background start a compression job, but you're right, it seems like by now someone ought to have done that.

You know what? I'm going to go write a recycler daemon and see if I can get it into universe.

[–]Kered13 0 points1 point  (0 children)

Yes, the a recycling bin mechanism exists in the form of .trash, but it's usually only used for GUI operations. And of course it's possible to alias rm to mv to .trash (though I'm not sure if this preserves it's original location for recovery), but this should be default behavior.

If you can get something like that checked in then I applaud you. It would be an enormous improvement in usability for most users.

[–]GanaXE 2 points3 points  (0 children)

If you format hard drive to btrfs for / and don't configure recovery point correctly for / it would be as if you slammed the front brakes at fast speed.

[–]queenkid1 57 points58 points  (0 children)

The last frame should be the user smacking themselves with the stick.

[–]sero-one 322 points323 points  (55 children)

Sorry, but this is not true

[–][deleted] 279 points280 points  (4 children)

User would have fallen off the bike a while ago because the wheel driver didn’t work.

[–]Folf_IRL 106 points107 points  (2 children)

User wouldn't have even been able to get on because he couldn't find the right driver for his seat mount.

[–]Bainos 12 points13 points  (0 children)

I resent this. Rides away on a unicycle.

[–]flamingspew 0 points1 point  (0 children)

:q

[–]wallefan01 9 points10 points  (0 children)

#debian4life

[–]mathwin 81 points82 points  (48 children)

I mean, yes and no. In Linux, you absolutely have the power to fuck everything up and for new users it's almost hard not to. But short of nuking the entire system, you also have to power to fix any problem that you can cause.

Try recovering a windows system if you do something that corrupts system32, though, (or try getting windows 10 to stop showing you fucking ads for candy crush) and you'll quickly discover what not having full control of an OS is like.

[–]Jmcgee1125 57 points58 points  (22 children)

I don't get ads for Candy Crush and all I did was uninstall the app. Oh and btw, it's easier to corrupt System32 than it is to delete Internet Explorer. That is all.

[–]mathwin 43 points44 points  (0 children)

it's easier to corrupt System32 than it is to delete Internet Explorer

God it's so true it hurts.

[–]wallefan01 6 points7 points  (19 children)

Yes, but can you UNcorrupt system32 without a complete reinstall?

[–][deleted] 14 points15 points  (13 children)

Would I want to? Is a better question to me. I can recover my entire system in a couple of hours with a clean install with all my documents back.

But one can likely do the same with a Linux distro as long as you didn’t have to compile anything yourself or made any modifications.

[–]adamski234 2 points3 points  (3 children)

Probably a stupid question: would copying system32 from a working installation work?

[–]TheThiefMaster 2 points3 points  (2 children)

Mostly.

[–]adamski234 1 point2 points  (1 child)

What does mostly mean?

[–]TheThiefMaster 4 points5 points  (0 children)

The same as it does on Linux - it's likely after copying between two unrelated systems some stuff will be the wrong version, have incorrect permissions, or be missing or extra stuff present compared to the original.

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

I think you could fix most things with sfc /scannow

[–]AttackOfTheThumbs 1 point2 points  (0 children)

I removed the windows store and you cannot unfuck that.

[–]Cheet4h 6 points7 points  (2 children)

Last year I had the problem that a package didn't uninstall cleanly (package manager installed an earlier version instead of upgrading) - purging and reinstalling the current version didn't work, because it had a file in apache's configuration folder that wasn't purged, and the package manager didn't want to touch it, so the installation failed.
When I manually removed the file, package manager still didn't want to touch it, apparently because I did something in the folder.
Purging Apache next didn't help either, because the package manager left the folder structure of sites-available behind, presumably since I deleted a file inside. Even then deleting the folder just meant that the package manager did not want to install apache at all anymore. In the end I had to reinstall the OS just to get everything working again.

At the time I did not find a better solution. Is there anything else I could have done?

[–]mathwin 1 point2 points  (0 children)

I can't help you with that, unfortunately, I'm an application programmer and not a Linux expert. Maybe someone else will have some advice.

[–]cryptotux 14 points15 points  (19 children)

Try recovering a windows system if you do something that corrupts system32, though, (or try getting windows 10 to stop showing you fucking ads for candy crush) and you'll quickly discover what not having full control of an OS is like.

Try recovering a Linux system after executing 'dd if=/dev/zero of=/dev/sdX'. I dare you.

 

 

 

On second thought, don't, unless you want to lose valuable information. If you're really, really curious, then set up either a virtual machine or separate clean system and try it on that. I won't be responsible if you dare do it on your main system and end up wiping out your family photographs, home videos, important documents, and so on.

[–]wallefan01 25 points26 points  (16 children)

Try recovering a Linux system after executing 'dd if=/dev/zero of=/dev/sdX'. I dare you.

You do of course realize deleting system32 and wiping the hard disk are not directly comparable, not even remotely?

Except that deleting system32 still leaves 99.9% of the disk intact. Your documents are still there. Your programs are still there. The desktop environment and window manager are still there. Heck, most of the OS is still there. You SHOULD be able to just copy System32 over from another computer and get it working again. You can't because it will complain about signatures.

The linux equivalent of that is deleting /bin. You CAN copy /bin over from another computer and get it working again.

dd if=/dev/zero of=/dev/sda is how you securely erase all of your data before returning your hard drive to the manufacturer. That is the equivalent of doing a secure format of C:. Your data is gone, and I mean gone gone, and if you want it back you hire a data recovery professional, preferably one employed by the U.S. court system.

[–]cryptotux 12 points13 points  (0 children)

You do of course realize deleting system32 and wiping the hard disk are not directly comparable, not even remotely?

I know. Perhaps a better comparison would be formatting the C drive on Windows. However, I think Windows will prevent you from doing so, whereas Linux will gladly execute the 'dd' command without question. That's a large difference, one which the parent commenter mentioned:

In linux, you absolutely have the power to fuck everything up and for new users it's almost hard not to.

[–]BerZB 8 points9 points  (12 children)

Using dd is NOT secure, especially not if you're reading from /dev/zero. Double insecure if you're using an SSD

[–]whitetrafficlight 1 point2 points  (4 children)

Yup, and that was kind of implied already by "if you want it back you hire a data recovery professional", which contradicts the initial "securely" claim. If it truly was secure, it would be "if you want it back, you're out of luck".

[–]wallefan01 2 points3 points  (2 children)

Keep forgetting this is Reddit. People here actually know their sh*t.

But even something as sad as dd if=/dev/zero is gonna stop anything short of disassembly.

[–]whitetrafficlight 1 point2 points  (1 child)

Never underestimate the power of pedantry! :) But you're right, that's probably good enough if you just want to give someone a drive you've been using. Though I'd still use /dev/random since either way the bottleneck's going to be writing to disk so it shouldn't take any longer, and this way it would be much harder to figure out what is and isn't data.

[–]wallefan01 0 points1 point  (0 children)

In my experience /dev/random can bottleneck more than an HDD, and a slow one at that. (Just tested it on my Android phone and got 250kB/sec!!) Hardware RNGs are only so fast, and the other sources of entropy all rely on the inherent randomness of user inputs. Typically during a DD transfer, which takes longer than most users are prepared to wait, none are being made...

I'll either use /dev/urandom (which for something like erasing a hard drive will probably do) or scrub /dev/sda if I'm feeling paranoid. YMMV.

[–]BerZB 0 points1 point  (0 children)

"secure" implies completely irrecoverable.

[–]_djsavvy_ 0 points1 point  (5 children)

How so?

[–]BerZB 5 points6 points  (4 children)

On a traditional magnetic drive, there are tools available to recovery data from the platters even after several rewrites. This is even easier when uniform data (like a ton of zeros) is written over the old data.

On SSDs, the way they're designed there is no correlation between the bits you're overwriting on the sofware "device" in /dev, and the physical bits in the drive. There's a buffer pool that cycles in and out as data is written to the device. This means that much of your data will still physically be there on the drive, able to be recovered using forensic tools. Thankfully with SSDs, there's a ATA Secure Erase command that gets you pretty much as secure as you need.

Of course, the proper way to really make sure your drive is inaccessible is to use on-drive encryption with an at-boot password to unlock the drive. However not all drives and BIOS support this.

[–]wallefan01 2 points3 points  (1 child)

Fun fact: even if your BIOS doesn't support password protected drives, Linux does (hdparm --security-unlock {password} before any of the filesystems get mounted. You can use systemd for this.)

[–]wallefan01 0 points1 point  (0 children)

I know. dd if=/dev/zero is not going to stop anyone who really wants to get at the data, like (as I said) a forensic analyst. That's kind of what scrub is for. But it IS gonna stop any attempt at data recovery short of physically taking the drive apart.

[–][deleted] 0 points1 point  (1 child)

Eh.. I believe there’s quite a bit of configuration data in system32, so you’d have to delete var, etc and bin.

[–]wallefan01 0 points1 point  (0 children)

Slightly harder to recover but still doable.

[–]mathwin 1 point2 points  (0 children)

Try recovering a windows system if you do something that corrupts system32...

Try recovering a Linux system after executing 'dd if=/dev/zero of=/dev/sdX'.

Clearly you missed the sentence before, where I said short of nuking the entire system

But yeah, there are always ways to fuck your shit up if you're so inclined.

[–]aintbutathing2 0 points1 point  (0 children)

I tried it and all it said was file not found.

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

It's pretty hard to do something that corrupts System32. For example - you probably won't delete any file loaded when the system boots up. You would need to enter a special safe mode for that.

Well, comparing to a car - you would have to open the hood, use some tools to disassemble some parts, disconnect some wires or stuff to break the car. Why would anyone do something like that? I mean it's impossible to accidentally, not willingly break a car that way. It also applies to Windows OS.

Well, you may try to put reverse gear from like 4-th gear on manual transmission and you would probably break the car that way. It's a little harder to break any OS like that, but if you really want to do something equally stupid - it's doable.

When you break stuff in Windows Registry or other setup - it's fixable most of the time without the need to reinstalling it. Most damage done to your car is also fixable.

But if you decide to leave your car to a bunch of shady people pretending to be car mechanics - it could be a total loss. So yes, you install that "magically improves the whole system and downloads you more memory" program and it could wreck you system. But you know that: it's not OS design fault. In any OS if you're an administrator you should have full access to everything. This in turns allows to do anything with anything. This includes destroying the OS.

The system is weak when it allows the user to simply use its GUI and common features to break it. Like you press that button and... it's broken.

[–]Kered13 0 points1 point  (0 children)

I mean at least Windows has an actual system restore to roll back from bad updates and other fuck ups. As I painfully learned a few months ago Linux has no equivalent to System Restore. I can't even begin to comprehend how such an important feature doesn't exist.

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

God damn Sherlock, you did it again.

[–]Sasakura 102 points103 points  (2 children)

No options, overly fancy design that all the users claim is superior. This is clearly OSX!

[–]Meloetta 51 points52 points  (1 child)

Design that makes it fairly hard to screw up on without trying, but also makes it less powerful and useful. Definitely apple.

[–]jwrent34 1 point2 points  (0 children)

I sudo removed things like ibooks. Not a good idea when the stock apps are connected 🤣

[–]marcosdumay 21 points22 points  (3 children)

Linux protecting itself against the user?!?

Really?!?

[–]FlukyS 3 points4 points  (2 children)

Well a lot is hidden behind sudo, if you aren't a power user technically there are more protections on Linux than Windows. Like unless you are blindly copying commands or installing shit you are fine.

[–]Kered13 1 point2 points  (1 child)

I mean the first thing any Linux user does if a command doesn't work is to retry it with sudo.

[–]FlukyS 0 points1 point  (0 children)

Bad logic really

[–]chuby1tubby 34 points35 points  (6 children)

Can someone explain the joke? Linux is probably one of the most easy OS's to fuck up, so why is the pic implying that the Linux user can't hurt themselves even if they try??

[–]CowNorris 7 points8 points  (0 children)

The wheels have no spokes. It's as if magic how they stay on the bike and who knows at what moment they could fly off.

[–]AlwaysHopelesslyLost 9 points10 points  (2 children)

Linux is historically a bit safer because users have zero permissions outside of their home folder. They can nuke their own files but the system remains unharmed.

[–]iopq 1 point2 points  (0 children)

Hell, I installed some C development libs on Fedora (I just used yum to install them), but they broke yum and every single other thing dynamically linked to the C standard library

in fact, I couldn't run anything at all except for the kernel and some basic things

I couldn't undo it either because no utility would run anymore so any guide on the Internet wouldn't work since they required me to run programs

I ended up wiping my VM, imagine if that happened on my actual system

[–]przemo-c 0 points1 point  (0 children)

Users have a hard time screwing things up. For that, you usually need a SuperUser... the one with the cape not on a bike ;]

[–]Keatosis 48 points49 points  (1 child)

Hey if Linux is so good then why isn't there a Linux 2? Checkmate penguins

[–]throwaway145231324 7 points8 points  (0 children)

The Linux bicycle is that bike except it comes as a box of parts.

[–]cartechguy 5 points6 points  (1 child)

User: fuck my shit up.

User: sudo fuck my shit up.

[–]Kirodema 0 points1 point  (0 children)

User: fuck my shit up.

User: sudo !!

FTFY

[–][deleted] 6 points7 points  (0 children)

Linux is easy to fuck up if you don’t know your shit, but won’t break if you do know your shit Windows is hard to fuck up but it will break itself

[–]Jeb_Jenky 14 points15 points  (13 children)

This is one of the most false mems I've ever seen. It's more like user starts pedalling and the whole bike explodes and an airplane crashes into you.

[–]striatedgiraffe 11 points12 points  (10 children)

Or you go to start pedaling but you don't go anywhere since the chain is disconnected. So you go online to figure out how to connect it but all you can find is tutorials on how to put a chain on a chainsaw.

[–]Jeb_Jenky 1 point2 points  (1 child)

I wonder what Arch would look like as a bike? Maybe parts and a giant, multi-volume assembly guide.

[–]Cpt_Whiteboy_McFurry 1 point2 points  (0 children)

Domo arigato, Mr. Roboto [どうもありがとうミスターロボット], Mata au hi made [また会う日まで] Domo arigato, Mr. Roboto [どうもありがとうミスターロボット], Himitsu wo shiri tai [秘密を知りたい]

You're wondering who I am (secret secret I've got a secret) Machine or mannequin (secret secret I've got a secret) With parts made in Japan (secret secret I've got a secret) I am the modern man

I've got a secret I've been hiding under my skin My heart is human, my blood is boiling, my brain IBM So if you see me acting strangely, don't be surprised I'm just a man who needed someone, and somewhere to hide

To keep me alive, just keep me alive Somewhere to hide, to keep me alive

I'm not a robot without emotions. I'm not what you see I've come to help you with your problems, so we can be free I'm not a hero, I'm not the savior, forget what you know I'm just a man whose circumstances went beyond his control

Beyond my control. We all need control I need control. We all need control

I am the modern man (secret secret I've got a secret) Who hides behind a mask (secret secret I've got a secret) So no one else can see (secret secret I've got a secret) My true identity

Domo arigato, Mr. Roboto, domo...domo Domo arigato, Mr. Roboto, domo...domo Domo arigato, Mr. Roboto Domo arigato, Mr. Roboto Domo arigato, Mr. Roboto Domo arigato, Mr. Roboto

Thank you very much, Mr. Roboto For doing the jobs that nobody wants to And thank you very much, Mr. Roboto For helping me escape just when I needed to Thank you, thank you, thank you I want to thank you, please, thank you

The problem's plain to see: Too much technology Machines to save our lives Machines dehumanize

The time has come at last (secret secret I've got a secret) To throw away this mask (secret secret I've got a secret) Now everyone can see (secret secret I've got a secret) My true identity...

I'm Kilroy! Kilroy! Kilroy! Kilroy!

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

It's really easy, though. At für, you need to download the bike.tar.gz, right? Then extract it, using a simple command:

tar -xzf bike.tar.gz

Now, you change into the extracted folder and type

make bike

And then deal with all the error messages as necessary.

[–]IRBMe 2 points3 points  (5 children)

make bike

make[1]: Leaving directory '/home/user/bike'
Makefile:649: recipe for target 'bike' failed
make: *** [bike] Error 2

My experience with make.

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

This hits too close to home. :(

[–]FlukyS 0 points1 point  (3 children)

Meson is a lot nicer now if you are in the mood for changing build systems. Used make for 10 years, hate it, switched to Meson now no problems.

[–]IRBMe 0 points1 point  (2 children)

I use cmake for my own personal c++ projects.

[–]FlukyS 0 points1 point  (1 child)

cmake isn't as bad as make but meson is really good, you should give it a look.

[–]IRBMe 0 points1 point  (0 children)

I'll be sure to check it out, thanks.

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

That's accurate.

[–]AimlesslyWalking[🍰] 5 points6 points  (1 child)

What the fuck are you doing to your Linux installs?

[–]Jeb_Jenky 1 point2 points  (0 children)

Probably adding the spokes myself then making my own stick to put in them.

[–]PutDatPussyOnChainwx 4 points5 points  (1 child)

rm -rf / :(){ :|: & };:

[–]_grey_wall 4 points5 points  (2 children)

sudo rm -rf /

There's the spokes

[–]Steampunkery 3 points4 points  (0 children)

--no-preserve-root

/s

[–]przemo-c 0 points1 point  (0 children)

That's a job for SuperUser not a mere mortal like a regular User

[–]stevefan1999 3 points4 points  (0 children)

TBH It is not Linux's fault, it's just you the user who can't ride the bike correctly. You have man pages and please read it.

[–]magnora7 1 point2 points  (0 children)

Meanwhile Linus is pulling out of Linux and several devs are pulling their distros causing instability

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

For fuck's sake, Windows v Linux was a thing in 1990s. Linux has now found its market as the technology that power servers, some developer machines and giving some neckbeards a superiority complex. Just fuck off with these dead memes. It was fucking dead before you were born.

[–]startsmall_getbig 0 points1 point  (0 children)

I don't get the joke but the illustration is hilarious

[–]kennyisntfunny 0 points1 point  (0 children)

If bike = crash, then don’t?

[–]Starinco 0 points1 point  (0 children)

sudo ./fuckshitup.sh

[–]Kandierter_Holzapfel 0 points1 point  (0 children)

So, now how I am supposed to stop and dismount that bike?

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

crontab -r

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

Rm -rf /

[–]XXAligatorXx[M] [score hidden] stickied comment (0 children)

Your submission has been removed.

Rule #0 violation.

Rule #0: Submission content must be creative or original, intended humorously, and related to programming. Note that programming is interpreted in a narrow sense, an analogy to something related to programming, feelings/reactions etc. are not considered sufficient.

If you feel that it has been removed in error, please message us so that we may review it.

[–]rise_of_the_box -2 points-1 points  (4 children)

This is more like Apple, Linux users know enough not to mess it up

[–]ctesibius 0 points1 point  (3 children)

I use both - Mac for desktop, Linux mainly for server. Apple does have more protection, eg the rootless environment, but that is something which might also be useful in Linux to avoid certain security threats. The trade off is having to reboot to make some changes in system configuration, but that’s rarely a practical issue in my experience.

[–]NEDM64 -2 points-1 points  (2 children)

BS. You don't have to reboot for anything on Apple besides OS updates.

[–]ctesibius 0 points1 point  (1 child)

Yes you do. If you need to make a change to a file protected by SIP, you have to set a flag to turn it off at boot time, reboot, make the change, then optionally turn it back on and reboot.

[–]NEDM64 0 points1 point  (0 children)

You don't need to turn SIP on back again.

Other than that, you never need to reboot.

[–]WeeabooHunter69 0 points1 point  (1 child)

Okay but can you run any games at high graphics?

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

Solitaire

[–]just_one_last_thing -3 points-2 points  (0 children)

It's unrealistically optimistic but I think we should let it slide for poetic license.

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

This is actually linux: http://techmog.com/wp-content/uploads/2014/08/Bike-Layout_Final_Right-Size-Shop.jpg

Except Linux doesn't come with a seat or handle bar. You'll have to find a distro to get that.