[–] 2 points 6 days ago (1 child)

This is apparently a joke! But I have done this in real life. It's an honest mistake you can make if you're experienced, fast, complacent and careless. Always be prepared for it. Here are some tips:

  1. Don't use sudo for anything other than system operations. Not even for editing configuration files.

  2. Never put any development/sysadmin projects under ownership of root. Always develop the project under your personal unprivileged user account. Use sudo only for the final deployment of project to system directories.

  3. Use sudoedit to edit any system configuration files.

  4. Avoid ./* at all times in favor of just *. While this is counterintuitive, this is actually safer. You will have less habitual urge to type the / alone by accident.

  5. Avoid the -f flag in all instances for any command until some operation fails. That will leave you with enough time to reflect on your mistakes when you make one.

  6. Always keep a data recovery plan. Backups are highly recommended. If you use Btrfs partitions, you can make periodic read-only snapshots of your critical data. You can automate this process with a tool like Snapper.
    Btrfs snapshots store de-duplicated data. So each snapshot stores only the changes from the previous one. It doesn't use a lot of space, even when backing up large media files. You'll still get the chance to recover your data at the time of the last snapshot.

  7. Most operating system files aren't critical data and don't need to be backed up. Backup the system configuration files in /etc and the package installation list if your package manager facilitates it.

  8. This is optional, but useful in case your Linux installation gets nuked somehow, including this nonsense.
    You can always reinstall the distro and start over again. But often times, you can trivially recover the installation by booting from a live USB/CD and doing some manual repair. Learn to chroot into your nuked root partition and operate from inside it.
    Most live disks give you an option to repair an installation, in case you deleted the root partition by accident. You can also repopulate the deleted files using commands like debootstrap and pacstrap.

  • source
  • [–] 1 point 6 days ago* (last edited 6 days ago)

    Why not just:

    rm -r *
    

    What is the necessity of that sudo, -f and /?

    Disclaimer: I have carelessly committed this nonsense too. Thankfully, the important data was backed up. I used a live USB to access the nuked OS partition and used chroot to repopulate the deleted system files. Didn't even have to reinstall the OS.

    Always have a disaster plan. If you have a btrfs partition, even periodic btrfs snapshots are a cheap lifesaver. Everything else can be saved like a breeze with some terminal magic.

  • source
  • parent
  • context
  • [–] 2 points 8 months ago (2 children)

    I never thought of the US as a benevolent invasion force. I knew they massacred ordinary people. And clearly, you're part of the problem here.

    But I'm not talking about that. Despite all the bombs you drop, you fail to achieve anything in the end. Vietnam, Afghanistan, Iraq. Is there one invasion you can say you're proud of? Perhaps psychopaths like you can, based entirely on the blood shed. But for human beings, you just keep sacrificing soldiers till you withdraw with your tail tucked behind you. You create powerful enemies who go on to cause even more damage to you. It's your shortsightedness and simplistic thinking that defeats you in the end.

    Meanwhile, your equating human lives to grass, is just lack of humanity. I just pity you. But don't believe for a second that you're immune to it. One day it will be someone else doing it to you.

  • source
  • parent
  • context
  • [–] 4 points 8 months ago (8 children)

    The war just started. How do you even know what tricks they have up their sleeves? You think dropping big explosives from the air is the only form of warfare? How did that work out for you in Vietnam? This is the same hubris Putin demonstrated. Don't jump the gun.

  • source
  • parent
  • context
  • [–] -1 points 8 months ago

    The problem isn't the system. The system exists only to help the people maintain the upper hand. It's the people themselves. Trump is only a symptom of a problem with the people. In fact, even if he drops dead tomorrow, you'll find a queue of a couple of dozen even worse psychopaths waiting to take his place.

    It's hard to see the problem when you're part of the US society. But it's evident from the outside. An average of more than one school shooting happens in the US per day. This isn't even a news these days. But it's unheard of and unbelievable in other nations. If anything similar happens, it would be news and discussion for a year. You don't go to churches or malls or railway stations (there is such a thing) worrying if you'll die of gunshots.

    Political assassinations are a big deal elsewhere - even of a political opponent. You should have seen the US republicans celebrating the murder of Renee Good and Alex Pretti. So the left must be good, right? Of course, they were celebrating the assassination of Charlie Kirk. The sudden disappearance of a human life is something most people can't stomach. Yet, people were celebrating the gory videos!

    Similar attitude with armies. There are no just wars. Wars always cause unjust and unimaginable suffering. Wars must be avoided. Of course that's not an option sometimes. Then your aim must be to attain the objective as fast as possible and restore peace. But all wars are holy wars for Americans. They don't even tolerate it when I suggest that even their military may be committing war crimes (that's charitable, considering what's reported). To them, their military is the righteous force that can do no evil!

    This is part of a pattern of excess pride, often called the 'American exceptionalism'. Americans also give little value to perspectives of people in other countries. Many behave as if the US is the entire world! Problems like the Trump-Epstein regime will continue to repeat until Americans start to introspect and self-criticize. It will happen until a big section of Americans open up their mind to the perspectives of others.

  • source
  • parent
  • context
  • [–] 1 point 8 months ago (3 children)

    Actually, it's Don Jr in the succession line, not Jeb Bush. Though that would be decades from now. The succession plan was exposed around the time Charlie Kirk was assassinated, because he was in it too. Vance is the immediate successor.

  • source
  • parent
  • context
  • [–] 1 point 8 months ago

    That may or may not be true. But this revelation isn't an accident. The war is more unpopular at home than they expected, even among the MAGAs. They're just trying to save their image by throwing Nethanyahu under the bus.

  • source
  • parent
  • context
  • [–] 1 point 8 months ago

    Those embarrassing things are pretty well known in public. The rest are just dull bureaucratic denials to Palantir (as they should). Palantir must be a snowflake to react like this. I guess that must be expected from an inconsiderate bully.

  • source
  • parent
  • context
  • [–] 1 point 8 months ago (1 child)

    Is there some sort of qualifying examination on psychopathy before they let you into the billionaires club? If so, I want to invite all of them to a single event for a photo op.

  • source
  • view more: next ›