[GTALUG] Man deletes his entire company

Scott Sullivan scott at ss.org
Sat Apr 16 13:06:59 EDT 2016


On 04/16/2016 01:03 PM, Scott Sullivan wrote:
> Reading through the thread, I've seen no mention,
>
> --preserve-root
>                do not remove '/'
>
> In modern RHEL/CentOS 7 it's actually on by default.
>

Results from my Fedora 23 test VM (where it is already default in the 
native version of rm, older versions you had to invoke specifically).

[root at munchkin ~]# rm -rf ${foo}/${bar}
rm: it is dangerous to operate recursively on ‘/’
rm: use --no-preserve-root to override this failsafe
[root at munchkin ~]#

-- 
Scott Sullivan


More information about the talk mailing list