this post was submitted on 26 Mar 2026
372 points (98.2% liked)

linuxmemes

30786 readers
1174 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 50 comments
    sorted by: hot top controversial new old
    [–] bitwolf@sh.itjust.works 6 points 22 hours ago (1 children)

    What did the minefield directory do here to hijack cd?

    Can an alias be applied upon cd?

    [–] Alberat@lemmy.world 2 points 10 hours ago* (last edited 10 hours ago)

    on termux it works:

    ~ $ alias 'cd=echo'
    ~ $ cd
    
    ~ $ cd hi
    hi
    ~ $
    
    [–] rangber@lemmy.zip 43 points 1 day ago (1 children)

    The power cable would like to have a word.

    [–] Alberat@lemmy.world 3 points 10 hours ago* (last edited 10 hours ago)

    it removed your disc encryption keys and the only way to recover it is finding it in memory through the minefield

    [–] 30p87@feddit.org 15 points 1 day ago

    objdump -D * | less

    [–] kivihiili@lemmy.blahaj.zone 22 points 1 day ago (1 children)

    while this is not real, something similar in principal very much was! (but not too widespread)

    see here or look up "casino dos malware"

    uh in short it erases "the disk's" (unsure which) file allocation table (pretty much the dos/windows version of a superblock). apparently some versions did copy it to memory and give the user a chance though!

    [–] Hupf@feddit.org 5 points 1 day ago

    There also was Fake DOS back in the day

    [–] KoboldCoterie@pawb.social 105 points 2 days ago (2 children)

    Based on the responses in this thread, I feel like you could present this screenshot with a "I bet you couldn't find your way out of this!" and a zip of the directory, and a significant number of users would voluntarily download it and extract it just to "prove that they could".

    [–] moonshadow@slrpnk.net 60 points 2 days ago (8 children)

    Genuinely my first response. What are VMs for?

    load more comments (8 replies)
    [–] tyler@programming.dev 15 points 1 day ago (1 children)

    Well yeah? And you do it in a vm. But seems like a decently simple problem anyway. ls -al and compare the sizes.

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

    Obvioulsy whoever set this minefield thought about this

    [–] tyler@programming.dev 1 points 8 hours ago

    I mean they didn’t, cause you can just open another terminal window or pull the plug on the computer, but like someone else said, a binary can’t change the directory for you cd is a shell built in, so I’m pretty sure this would be trivial to get past.

    [–] Denvil@lemmy.ml 7 points 23 hours ago

    The greatest trick is to make your opponent think you thought of everything. Powering off might just straight up work and they're just bluffing, might as well try

    We have squid games at home.

    Squid games at home:

    [–] savvywolf@pawb.social 28 points 1 day ago (4 children)

    Reminder that binaries cannot change a shell's working directory, so the non-mines will do nothing.

    (cd is a shell builtin)

    [–] glibg10b@lemmy.zip 9 points 1 day ago

    Technically they could if run as root by modifying the parent process

    [–] BetterDev@programming.dev 5 points 1 day ago

    I mean, you can just write a whole custom shell for this

    [–] Sasquatch@lemmy.ml 6 points 1 day ago

    it could just reinvoke $SHELL in the parent dir

    load more comments (1 replies)
    [–] CannedYeet@lemmy.world 31 points 2 days ago (2 children)

    Reminds me of gameshell, which is a rogue-like game designed to teach you the unix shell. So instead of navigating with NESW, you cd to locations. At one point you search the "garden", which is an unmanageable tangle of directories, with find.

    [–] sol6_vi@lemmy.makearmy.io 4 points 1 day ago

    There goes my night? Longer?

    [–] deczzz@lemmy.dbzer0.com 4 points 1 day ago

    Cool! Will give this a try for sure! Always forget commands

    [–] Anafabula@discuss.tchncs.de 71 points 2 days ago (4 children)
    [–] not_IO@lemmy.blahaj.zone 11 points 1 day ago (1 children)

    Bypasses aliases and uses the original command

    load more comments (3 replies)
    [–] assembly@lemmy.world 60 points 2 days ago

    Combat the minefield with a fork bomb. Ain’t no process surviving this engagement.

    Has "let's play a game" vibes

    [–] timestatic@feddit.org 44 points 2 days ago (1 children)

    They never guess the next move: Unplugs pc

    [–] rockerface@lemmy.cafe 27 points 2 days ago (1 children)
    [–] spicytuna62@lemmy.world 14 points 1 day ago (1 children)

    Either that or the PC keeps running anyway.

    [–] FreddiesLantern@leminal.space 6 points 1 day ago* (last edited 1 day ago)

    Boston Dynamics: β€œEither that or the PC keeps running away.”

    [–] weissbinder@feddit.org 43 points 2 days ago (11 children)

    How can you prevent users from leaving a directory?

    [–] flyingSock@feddit.org 37 points 2 days ago

    chroot, and override exit with an alias,could work

    [–] grue@lemmy.world 19 points 2 days ago

    Magic, I guess, 'cause nothing in the sceenshot would do it, unless the attacker had already replaced cat with a trojan or something.

    load more comments (9 replies)
    [–] AstroLightz@lemmy.world 34 points 2 days ago (2 children)

    I can think of a way out:

    Just throw the whole PC away. It's someone else's problem now!

    [–] rockSlayer@lemmy.blahaj.zone 20 points 2 days ago

    But that just becomes a Jumanji issue

    load more comments (1 replies)
    [–] OwOarchist@pawb.social 22 points 2 days ago (1 children)
    [–] tetris11@feddit.uk 3 points 1 day ago (1 children)

    *a single cat is hurled unceremoniously through the window onto your lap*

    [–] Ghostie@lemmy.zip 23 points 2 days ago* (last edited 2 days ago)

    I’ll hit them with an rm /etc. We go out, we go out together and on my terms.

    load more comments
    view more: next β€Ί