this post was submitted on 20 Apr 2025
891 points (98.2% liked)

linuxmemes

24601 readers
1490 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    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 remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] Lumelore@lemmy.blahaj.zone 94 points 3 days ago (6 children)

    Obligatory reminder to remove the French language pack:

    sudo rm -fr /*

    [–] SinkingLotus@lemmy.world 48 points 3 days ago

    I mean... You're not wrong. If there's a French language pack on the system, it will remove it.

    Tap for spoilerAlong with everything else.

    My brother did this accidentally... twice... Don't ask me how you manage to do this twice...

    [–] stembolts@programming.dev 33 points 3 days ago (1 children)

    I add a -v because I like to watch.

    [–] Deckname@discuss.tchncs.de 10 points 2 days ago

    You sick Bastard.

    [–] LeninOnAPrayer@lemm.ee 14 points 3 days ago* (last edited 3 days ago) (3 children)

    alias trash-put from trash-cli in both sudo and user.

    myrm() {
      trash-put "$@"
    }
    alias rm="myrm"
    

    This has saved my ass so many times. Especially when typing "rm * .png" instead of "rm *.png"

    Can restore the files using the cli or from system recycling bin.

    The alias to rm is probably not best. So getting use to using another name is probably best. But I'm never had a problem with it.

    [–] grrgyle@slrpnk.net 12 points 2 days ago (1 children)

    That feeling where rm is taking a while to return to the prompt

    [–] LeninOnAPrayer@lemm.ee 4 points 2 days ago

    Exactly. Ctrl+C and hope ls isn't completely empty.

    [–] pressanykeynow@lemmy.world 2 points 3 days ago

    Or just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.

    [–] _____@lemm.ee 2 points 3 days ago (1 children)

    I've never ran into any issues from using rm but I like this idea and will be using it as I only see positives

    [–] LeninOnAPrayer@lemm.ee 3 points 3 days ago

    Downsides can be inconsistent behavior. As with any alias it's not meant to be anything but a replacement in your shell. Scripts/SSH etc.

    Also, you gotta remember to empty your trash. :)

    [–] projjalm@lemy.lol 9 points 3 days ago (1 children)
    [–] Mensh123@lemmy.world 7 points 2 days ago

    Did you actually run it?

    In this case, I hope you had a backup. Boot a live system to see if there's anything left. Back that up, then reinstall.

    [–] kewjo@lemmy.world 3 points 3 days ago (2 children)

    make sure to add --no-preserved-root to make sure to update all the English libraries too so you can make sure only freedom fries are respected.

    [–] groet@feddit.org 10 points 3 days ago

    Not necessary with /* Only needed if you do rm -rf /

    [–] Agent641@lemmy.world 3 points 2 days ago

    No preserved root because candied ginger is gross