4 ms·
Never thought about this, interesting question. You can try this equivalent, killing the server when it tells you to - https://gist.github.com/aidanhs/e4041738
by aidanhs 12y ago
Never thought about this, interesting question.
You can try this equivalent, killing the server when it tells you to - https://gist.github.com/aidanhs/e40417381e9aecb87b35 https://gist.github.com/aidanhs/e40417381e9aecb87b35. It prints '/', i.e. would remove your root directory if it was an `rm` command.
Won't be doing that again then.
- steveklabnik 12y agoRemember that these days, with GNU rm, you have to pass in `--no-preserve-root` to actually `rm -rf /`. Attempting to remove something in the home directory and getting a `rm -rf /home/username/` would still be pretty bad.