Linux 4 All

Best Linux tricks source

rm -rf is gone

It looks like you cannot run rm -rf as root on CentOS or RHEL6 boxes.

# cat /etc/redhat-release 
CentOS release 6.5 (Final)
# rm -vrf /               
rm: it is dangerous to operate recursively on `/'
rm: use --no-preserve-root to override this failsafe
# 

Don’t try this on a RHEL5 boxes.

Delete all but the newest 50 files from a folder arrow-right
Next post

arrow-left Disable/enable cluster services on RHEL/CentOS and changing VG_TYPE
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *