this post was submitted on 16 Mar 2024
237 points (87.9% liked)

linuxmemes

21291 readers
881 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  • ย 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    top 35 comments
    sorted by: hot top controversial new old
    [โ€“] [email protected] 77 points 8 months ago (2 children)

    next step: the system asks for the sudo passwort to confirm ๐Ÿ˜…

    [โ€“] [email protected] 51 points 8 months ago (1 children)

    real men use root accounts.

    This is the reason real men cry.

    [โ€“] [email protected] 21 points 8 months ago (2 children)

    Why do real men using root type sudo, though?

    [โ€“] [email protected] 16 points 8 months ago

    Because. we can. and Linux doesn't ask questions.

    [โ€“] [email protected] 1 points 8 months ago

    i log into my desktop environment as root.

    [โ€“] [email protected] 25 points 8 months ago* (last edited 8 months ago)

    myuser ALL=(ALL) NOPASSWD: ALL

    Security? What security?

    [โ€“] [email protected] 42 points 8 months ago (2 children)

    Who the fuck does that to "live life on the edge"? And what kind of mental illnesses do you have ?

    [โ€“] [email protected] 14 points 8 months ago

    No one does that. It's just a stupid joke.

    [โ€“] [email protected] 8 points 8 months ago (1 children)

    He's probably use Arch BTW

    [โ€“] [email protected] 1 points 8 months ago

    I use arch my friend and I still find this meme retarded!

    [โ€“] [email protected] 35 points 8 months ago

    Just run Suicide Linux and get it out of the way fast.

    [โ€“] [email protected] 21 points 8 months ago (2 children)

    Restoring a btrfs snapshot after deleting. :D

    [โ€“] [email protected] 30 points 8 months ago

    Totem of undying

    [โ€“] [email protected] 3 points 8 months ago

    Having BTRFS snapshots set up for root: ๐Ÿ˜€ Elbow on the keyboard issues this command before the sudo timeout: sudo rm -rf ./testdir/cd $HOME RIP home directory ๐Ÿ˜ญ and still figuring out the best way to do snapshots of home without using timeline snapshots and using a ton of spaceโ€ฆ

    [โ€“] [email protected] 10 points 8 months ago* (last edited 8 months ago)

    OS 9 on macOS did me dirty when I tried to delete it for the final time. The OS X operating system folder is named System. And the OS 9 folder is named System Folder.

    So I typed rm -rf System and then tried to type the \ character so I could put in the space between the two words. Which is right above the Return key. Guess what I hit instead of \โ€ฆ

    I hit control-C almost immediately but it still got through C inside the System folder. Apparently nothing absolutely vital lives in the A-C folders, btw. I was able to even reboot and it all came up normally. Only thing was I couldnโ€™t run any Carbon apps (which was kind of crucial at the time) so I still had to do a reinstall of the OS.

    [โ€“] [email protected] 10 points 8 months ago (2 children)

    Just copy your nix config over and build again. Non-issue. What? You don't have a backup? You deserved it then.

    [โ€“] [email protected] 12 points 8 months ago

    I like the adrenaline rush of not having backups

    [โ€“] [email protected] 1 points 8 months ago (1 children)

    As a nixOS user, proud to say github is my backup. I like making Microsoft pay for my mistakes.

    [โ€“] [email protected] 3 points 8 months ago

    I just use github for my secrets file, that's what I really don't want to lose. I keep the encryption key in a separate repository of course so no one can just look in and see my passwords.


    It also works for important documents. Birth certificate? GitLab repository. (Not GitHub, I lie to Microsoft about my age and don't want them to know.) SSN? GitHub organisation name. Love notes from my high school crush? Duh, obviously I don't want to lose those. They're on the Blockchain, for proof of originality. Bank details? I have a website on Netlify with those. Makes it easy for all those nice foreign gentlemen on the phone to send me money.

    [โ€“] [email protected] 7 points 8 months ago (1 children)

    I like to tell IT newbies in their first year apprentice that sudo rm -fr / removes the french language from the root, since in Swiss Windows, french comes as second keyboard layout and sometimes you accidentally switch and nobody likes it.

    Somethimes their first linux is a VM, lucky them, but not always:)

    [โ€“] [email protected] 4 points 8 months ago

    swiss windows (swindows) ships with a higher-than-average amount of malware

    [โ€“] [email protected] 5 points 8 months ago (1 children)

    Pressing ctrl-c before anything critical gets deleted: :)

    [โ€“] [email protected] 11 points 8 months ago (2 children)

    ...Hopefully.

    Have fun trying to find what went poof. :)

    [โ€“] [email protected] 7 points 8 months ago* (last edited 8 months ago)

    go to find the system logs
    realize the first deleted directory was /var

    [โ€“] [email protected] 2 points 8 months ago

    Usually, /home/ isn't what gets deleted first so unless your computer can delete everything within a few seconds, ctrl-c and would work. Then you can survey the damage and reinstall the OS if necessary.

    [โ€“] [email protected] 3 points 8 months ago

    Too much to type and may prompt you if you're sure. Just go with

    \rm -rf /*

    [โ€“] [email protected] 3 points 8 months ago

    echo 'alias the-purge="sudo rm -rf / --no-preserve-root" ' >> ~/.profile

    [โ€“] [email protected] 3 points 8 months ago* (last edited 8 months ago)

    I think this is actually more damaging especially if you make a cronjob with it: sudo rm -rf โ€œ$(sudo find / -type f -print0 | shuf -n1 -z)โ€

    [โ€“] [email protected] 2 points 8 months ago (1 children)

    is it save to do this on a virtual machine though?

    [โ€“] [email protected] 4 points 8 months ago (1 children)

    Yeah, why not. If you don't have anything important on the VM you can do whatever the fuck you want.

    [โ€“] [email protected] 2 points 8 months ago (2 children)

    so it will simply stop working until you reinstall the VM?

    [โ€“] [email protected] 2 points 8 months ago

    Depending on the system it will not even have a promt or have it but /bin is gone and no command works

    [โ€“] [email protected] 1 points 8 months ago

    The VM will stop working yes. You could use snapshots before though.

    [โ€“] [email protected] 2 points 8 months ago

    This is why I run VMs

    [โ€“] [email protected] 1 points 8 months ago

    [sudo] enter password for $USER: