Live data from Hacker News

Show HN: Oops I deleted my bin/ dir

oops.cmdchallenge.com

21–23 of 23 posts

Re: Show HN: Oops I deleted my bin/ dir

#21
post #18

Really fun, kind of trains you to when the situation happens IRL, whether you're thinking about how to escape a shell or if you really did it by mistake. I love showing this screenshot to people: https://imgur.com/a/ziHqJxB . I was having problems trying to create a jailed shell, so I decided to bind mount /bin. That of course was a bad idea. I gave up and rm -rf'd the mountpoint without unmounting it. The screenshot…

The top of the image is unreadable due to excessive lossy image compression.

After clicking on it I can read it fine.

Re: Show HN: Oops I deleted my bin/ dir

#22
post #8
post #2

Hello HN: This is a a modification to an old side-project that explores what is possible when you are left with a shell and no utilities on a Linux machine.

It's not really that educational tbh. I am not a bash guru, nor do I wish to be one, so the second question left me cold with no desire to proceed any further. It's a fun game for those with the skills, but an instructional tool it is not.

[deleted]

Re: Show HN: Oops I deleted my bin/ dir

#23
post #8

Earlier quoted context omitted.

It's not really that educational tbh. I am not a bash guru, nor do I wish to be one, so the second question left me cold with no desire to proceed any further. It's a fun game for those with the skills, but an instructional tool it is not.

It's an algebra game. Given a set of operations, can you get to state X? Usually requires a lot of searching and/or expertise, however the solutions will break pretty easily depending on which shell you're using, etc. So doesn't really teach you anything aside from iterating over a set of all possible operation combinations.

It's also a variation of the classic tech thought experiment/game 'If you only had X and how would you do Y?'. Like 'If all you had was telnet and had to send an email how would you do it?' or some variation of it, was a common one.
Post reply on HN