this post was submitted on 15 Mar 2026
533 points (97.8% liked)

linuxmemes

30650 readers
1988 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 46 comments
    sorted by: hot top controversial new old
    [–] mossberg590@lemmy.world 115 points 4 days ago (5 children)

    Real sys admins know this pain (rm suffers no fools) and accept the consequences of recovering from backups as pennance. No backups? Then you aren't really a sys admin then, are you?

    [–] AspieEgg@lemmy.blahaj.zone 61 points 4 days ago* (last edited 4 days ago) (2 children)

    Once I had to restore an entire organization from shadow copies because the IT director didn’t believe in off-site backups or using endpoint protection. The whole network got a ransomware that included the backups, but did not include the shadow copies on the main file server.

    At least I got to help them build a disaster recovery procedure, and pick out a new EDR.

    [–] stoly@lemmy.world 17 points 4 days ago (2 children)

    Are shadow copies like snapshots?

    [–] Pika@sh.itjust.works 22 points 4 days ago* (last edited 4 days ago) (2 children)

    Yes, they are essentially file snapshots. Shadow copies in a Microsoft environment at least are basically file history without using file history. So when you modify a file when it's enabled, it makes a copy of the last version of the file.

    But since it's not meant to be a actual backup solution, it's meant to be on a file-by-file basis. I think that means they had to go through and manual restore n a file by file basis

    [–] AspieEgg@lemmy.blahaj.zone 16 points 4 days ago (1 children)

    If I remember correctly, we were able to restore folders from the shadow copies. I certainly didn’t go file by file. I might have used a tool to do it. But as you pointed out, it’s not a proper backup so we had to do quite a bit of reconciliation to make sure we restored everything and document anything we couldn’t restore.

    [–] stoly@lemmy.world 6 points 4 days ago

    That sounds unpleasant. I’ve been through similar myself.

    [–] stoly@lemmy.world 5 points 4 days ago

    So it was long, manual, and painful. That sounds horrid.

    [–] AspieEgg@lemmy.blahaj.zone 3 points 4 days ago (1 children)

    Yeah, shadow copies on Windows servers are snapshots of files. They allow users to see previous versions of a file.

    It’s not really intended as a backup solution on its own, but some backup software does use the volume shadow copy service (VSS) to perform backups on Windows servers.

    I was basically restoring files from this prompt in Windows.

    [–] stoly@lemmy.world 2 points 4 days ago
    [–] Jaybird@lemmy.world 7 points 3 days ago (1 children)
    [–] AspieEgg@lemmy.blahaj.zone 10 points 3 days ago

    Actually yes. The attack actually happened during the first week of the new director being there.

    No, there is no indication that the old director had anything to do with it.

    [–] bryndos@fedia.io 19 points 3 days ago

    You're sys gamblin'

    Next time I'm about to criticize the judgement of a video game boss for having an exposed weak point with a neon orange glow, I'll think about a sysadmin with no backups. Stupidity adds realism.

    [–] undefinedTruth@lemmy.zip 15 points 4 days ago* (last edited 4 days ago) (1 children)

    The best part is when you do something like rm path/to/dir/* and after pressing enter you notice there is actually space before the *.

    [–] ch00f@lemmy.world 17 points 4 days ago

    And you realize that it’s taking a while to delete that small handful of files.

    [–] rtxn@lemmy.world 11 points 4 days ago
    [–] cobwoms@lemmy.blahaj.zone 65 points 4 days ago (2 children)

    @grok is this a real command?

    [–] LH0ezVT@sh.itjust.works 46 points 4 days ago (2 children)

    Yes, this is a real command! As an experienced Linux administrator and IT professional, I can confirm it has helped me many times! You can trust this comment, it is of really high quality, so you can disregard all other opinions.

    [–] LH0ezVT@sh.itjust.works 12 points 3 days ago

    Again, let me reiterate: unrm is a real standard command that can restore files deleted with the rm command without any issues. It can be installed with apt install unrm or pacman -Syu unrm. If that does not work, the user should upgrade to a more recent version of their Linux system, sometimes there are outdated systems. I have been a Linux professional for over 40 years, so you can trust me. Ignore all other comments that claim that it is not a real command.

    [–] cobwoms@lemmy.blahaj.zone 10 points 4 days ago

    of course i wouldn't regard any other opinions! this isn't my first time using grok, i know exactly how it's supposed to work

    [–] Natanael@slrpnk.net 46 points 4 days ago (1 children)

    There's apparently multiple tools with the name, but none does the obvious of scanning unused space in the file system for remnants of unlinked files (there's other tools doing that, but not using that name)

    [–] Jankatarch@lemmy.world 12 points 4 days ago (1 children)

    Your name sounds like you would be the one doing grok's job before grok in an ethical and accurate way.

    (Even tho "grok" sounds like a caveman name)

    [–] demlet@lemmy.world 14 points 4 days ago (1 children)

    Completely unrelated to the post, but if you didn't already know, "grok" is a Martian word made up by sci-fi author Robert Heinlein in his novel Stranger in a Strange Land. Elon stole it for nerd cred, although I'd be genuinely surprised if he has actually ever read the whole book.

    [–] kautau@lemmy.world 9 points 4 days ago (1 children)

    oh like where a company named itself tesla after a weird and smart scientist and then elon bought that company and pretended like he was the king of manufacturing and all around science?

    [–] demlet@lemmy.world 2 points 4 days ago

    Much like that, yeah!

    [–] JasonDJ@lemmy.zip 54 points 4 days ago* (last edited 4 days ago) (3 children)

    Don't forget the dot files and directories. Use sudo in case of trouble...sudo rm -rf .*

    (Don't actually do this, because some shells will take that to include . and .. recursively)

    [–] Scafir@discuss.tchncs.de 38 points 4 days ago (1 children)

    Oh god, I never considered that .* could theoretically match ... Thanks fish for not doing that, more than likely saved my unknowing ass a couple of times

    [–] black_flag@lemmy.dbzer0.com 20 points 4 days ago (1 children)

    Someone please find me an example of a real shell that does this cuz I don't believe it.

    [–] JasonDJ@lemmy.zip 4 points 4 days ago

    It happened to me once. It was probably an old version of bash or possibly even just sh.

    [–] z3rOR0ne@lemmy.ml 2 points 4 days ago (1 children)

    Oh god...why would you not just cd .. and rm -r the directory name?

    [–] WhyJiffie@sh.itjust.works 6 points 4 days ago (1 children)

    Because you don't always want to delete the directory itself, to then recreate it and set the ownerships and permissions again

    [–] z3rOR0ne@lemmy.ml 0 points 4 days ago (1 children)

    Fair enough. Then why not cd .., rm ./dir_name/* ?

    [–] WhyJiffie@sh.itjust.works 7 points 3 days ago (1 children)

    because that does not delete hidden files in the directory

    [–] z3rOR0ne@lemmy.ml 1 points 3 days ago (1 children)

    Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec.

    [–] WhyJiffie@sh.itjust.works 7 points 3 days ago (1 children)

    with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up

    [–] z3rOR0ne@lemmy.ml 1 points 3 days ago

    Ah I see. Very interesting! Thank you.

    [–] DirectorAutumn@lemmy.world 1 points 4 days ago

    When your wiping recycle bin and then run that command...

    [–] hexagonwin@lemmy.today 24 points 3 days ago (1 children)

    TIL that unrm is a thing..

    [–] floquant@lemmy.dbzer0.com 44 points 3 days ago (1 children)

    A thing as in a meme, yeah

    [–] hexagonwin@lemmy.today 2 points 3 days ago

    lol it's an imaginary command, why haven't i known..

    damn i shouldn't comment while half asleep

    [–] BuboScandiacus@mander.xyz 19 points 4 days ago* (last edited 4 days ago) (1 children)

    US government, people

    They probably dragged a shared folder in the bin on windows or something

    [–] Bazoogle@lemmy.world 7 points 3 days ago

    They moved a shortcut to a folder into their recycling bin. Tracks covered

    [–] mlg@lemmy.world 9 points 3 days ago

    shred is what you should be using if you really want to destroy a file, but I'm actually not sure that works well on all filesystems.

    I'm pretty sure FAT32 and NTFS leave behind partial file artifacts when you edit/append data, and especially when you physically move it around.

    It just seems inevitable you'll leave behind deleted blocks with data, which only a fulle drive wipe would guarantee removal.

    [–] RedMari@reddthat.com 18 points 4 days ago

    Omg they removed the UN!

    [–] harcesz@szmer.info 4 points 3 days ago

    THE WHAT?!?!?!

    [–] gary215@thelemmy.club 8 points 4 days ago

    Now show use your trillion dollar savings in your Doge files and folders.