this post was submitted on 20 Apr 2025
769 points (97.9% liked)

linuxmemes

24540 readers
3387 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 67 points 21 hours ago (6 children)

    Obligatory reminder to remove the French language pack:

    sudo rm -fr /*

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

    [–] SinkingLotus@lemmy.world 30 points 19 hours 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.

    [–] stembolts@programming.dev 15 points 19 hours ago (1 children)

    I add a -v because I like to watch.

    [–] Deckname@discuss.tchncs.de 2 points 1 hour ago

    You sick Bastard.

    [–] LeninOnAPrayer@lemm.ee 9 points 20 hours ago* (last edited 20 hours 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 4 points 6 hours ago

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

    [–] pressanykeynow@lemmy.world 2 points 19 hours 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 19 hours 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 19 hours 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 7 points 21 hours ago (1 children)
    [–] Mensh123@lemmy.world 4 points 9 hours 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 19 hours 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.

    [–] Agent641@lemmy.world 3 points 3 hours ago

    No preserved root because candied ginger is gross

    [–] groet@feddit.org 9 points 18 hours ago

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