rm -rf -Mitigating the dangers
emorrasg at yahoo.es
Sun Apr 17 17:28:39 UTC 2016
On Sun, 17 Apr 2016 20:10:11 +0300
Odhiambo Washington <odhiambo at gmail.com> wrote:
> I am wondering if I should place a feature request on this or just do
> it my way:)
> With great power comes great responsibility and as such I think there
> should be a wrapper around rm to warn sysadmins that what they are
> about to do with -rf is dangerous, yes?
> Read input from sysadmin 3 times, looking strictly for their
> confirmation before effecting the `rm -rf`.
> Could it be that what I am smoking/drinking is the issue here or I
> have your support? LOL
Fork rm code, rename one to areyoureallysure that honors -rf and classic rm without -rf.
But remember, no risk, no fun.
Eduardo Morras <emorrasg at yahoo.es>
More information about the freebsd-questions