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
---
Talk Mailing List
[email protected]
https://gtalug.org/mailman/listinfo/talk

Reply via email to