
16 Apr
2016
16 Apr
'16
10:06 a.m.
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@munchkin ~]# rm -rf ${foo}/${bar} rm: it is dangerous to operate recursively on ‘/’ rm: use --no-preserve-root to override this failsafe [root@munchkin ~]# -- Scott Sullivan