this post was submitted on 09 Jan 2026
279 points (98.3% liked)

linuxmemes

28831 readers
954 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.
  • Don't come looking for advice, this is not the right community.
  • 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
    top 34 comments
    sorted by: hot top controversial new old
    [–] stupidcasey@lemmy.world 7 points 1 day ago (1 children)

    I was trying to sudo rm -rf ./ Once and missed the / so I just used rm -rf . And this was before they added --no-preserve-root as a default so it just ripped through my entire drive.

    [–] beegnyoshi@lemmy.zip 6 points 1 day ago (1 children)

    sudo rm -rf ./ and sudo rm -rf . are, as far as I know, the same command. Did you mean that you dropped the . and ran sudo rm -rf /?

    Fortunately for me, this never happened to me, but I have gotten pretty close to running rm -rf ~ after mistakenly creating a directory caller ~...

    [–] x00z@lemmy.world 2 points 1 day ago (1 children)

    after mistakenly creating a directory caller ~…

    How do you even delete such a directory?

    [–] HK65@sopuli.xyz 3 points 1 day ago (1 children)
    [–] x00z@lemmy.world 2 points 1 day ago

    That makes sense.

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

    The heart skip when an rm command runs longer than expected.

    [–] Hubi@feddit.org 98 points 2 days ago (2 children)

    When you run a dd command and the light on the USB stick does not start flashing

    [–] Little8Lost@lemmy.world 17 points 2 days ago

    Why does it always take so lang to remove the french language pack???

    [–] kali_fornication@lemmy.world 22 points 2 days ago

    that really is a terrifying feeling

    When you forget to pipe the log file into less

    [–] hesh@quokk.au 67 points 2 days ago (1 children)

    ctrl-c ctrl-c ctrl-c ctrl-c ctrl-c

    [–] kali_fornication@lemmy.world 48 points 2 days ago (1 children)

    i ctrl+c my fucking face off when that happens.

    oh and in case y'all can't read it, the command is cat * in /bin

    How do I stop some big mean missed command from tearing up my main drive?

    The answer: Use Ctrl-C. And if that don't work, use more Ctrl-C.

    And if that don't work? Use Ctrl-Z.

    [–] Truscape@lemmy.blahaj.zone 37 points 2 days ago (2 children)

    "The right command in the wrong directory can make all the difference in the world. So rise and shine, Mr. Tux. Wake up, and check the log files..."

    kkzzt Pick up that coredump.

    [–] regedit@lemmy.zip 4 points 1 day ago (1 children)

    I heard this in G-man's voice from the first two or three words!

    That was intentional :)

    Apart from the initial "Rise and Shine" before the first sentence, this is a direct play on G-man's intro speech from HL2.

    [–] JasonDJ@lemmy.zip 20 points 2 days ago (1 children)

    When I paste a 250k-line log to console.

    [–] shoki@lemmy.world 3 points 1 day ago

    wondering why firefox hangs as you paste a 30MB text file into an online diff tool

    [–] Infernal_pizza@lemmy.dbzer0.com 24 points 2 days ago (1 children)

    Btrfs snapshots to the rescue!

    [–] Geometrinen_Gepardi@sopuli.xyz 9 points 2 days ago (2 children)

    I've been meaning to tinker with Brfs. Is the idea that snapshots live on a separate volume so you can always recover a messed up system?

    [–] Morphit@feddit.uk 12 points 2 days ago

    There are tools like snapper and btrbk that periodically make snapshots. Since btrfs is a COW filesystem, the live subvolume just stores newer changes on top of the snapshot β€” it doesn't need to copy anything until it changes. Only when file data is no-longer referenced is it actually marked free to overwrite. This can make disk usage a bit un-intuitive since you can have large files stuck in snapshots that don't show up in your live subvolumes but still use up space. It can really save you from serious mess ups and is really cheap in terms of performance. It's also possible to send snapshots over a network to another machine if you want longer term backups without keeping them on local disks.

    [–] Hupf@feddit.org 6 points 2 days ago

    That would be a separate step (send/receive).

    But rm -r when you created a snapshot before basically just adds metadata about which files are supposed to be deleted in the current version. The snapshot still has the old filesystem content.

    That also means that when you use up all your space, deleting files actually worsens the problem.

    [–] plsnerf7@lemmy.world 12 points 2 days ago

    Last week β€œI was trying to fix something” and made some bad decisions. Long story short, wrong command in the right directory the screen flashed like in this memeπŸ’€. Well, I liveUSB to reinstall the whole thing. Then I remembered that I installed Cachy with BTRFS snapshots. Bam Fucking magic, it's like nothing happened… I call it the Ohh shit, Ctrl-Z OS troubleshooter. Yep I'm new in linux...

    [–] alecsargent@lemmy.zip 19 points 2 days ago
    [–] Mnem667@sh.itjust.works 12 points 2 days ago
    [–] b_tr3e@feddit.org 10 points 2 days ago

    rm -rf is always right. No matter where. Supposed, of course, you are root.

    No discussion. I am root! I am always right!

    [–] jimerson@lemmy.world 9 points 2 days ago (1 children)

    Made that mistake last week. Luckily it was just a chmod and not a rm. Stomach did a flip regardless.

    [–] frostlytt@lemmy.blahaj.zone 5 points 2 days ago (1 children)

    oh i made that same mistake a month ago when trying to chmod 777 -R another partition... and ran it in / instead

    when I was but a baby sysadmin, my boss did that to a production server

    I recently noticed that the logging framework I use does not limit the log's length. I don't know how exactly I filled the memory so quickly, but I did

    [–] GottaHaveFaith@fedia.io 2 points 2 days ago

    I've aliases sudo rm to sudo rm -i