jarv / cmdchallenge

This repo is mirror of https://gitlab.com/jarv/cmdchallenge
https://about.cmdchallenge.com
MIT License
721 stars 71 forks source link

delete files doesn't like 'sudo !!' #113

Closed matthewfield closed 7 years ago

matthewfield commented 7 years ago

My standard attempt of rm -Rf ./* failed as an attempt at recursively deleting all files and sub directories from the current working directory. Responds with some files remain. A few variations that i would normally use didn't work, so i tried the brute force approach of escalating the last command via 'sudo !!'. That hangs it.

screen shot 2017-02-08 at 6 41 17 pm

jarv commented 7 years ago

Since commands are run in a bash subshell this will not work unfortunately. What you should see however is something like this:

bash(0)> sudo !!
/tmp/script.sh: line 1: sudo: command not found