--no-preserve-root is a security option to keep you from accidentally removing all your files. Make sure you always use it along side the ‘-f’ option and ‘-r’ which stands for rescue - meaning rm will create a rescue copy of the deleted data.
Some poor soul is going to take this to the bank and have a horrible day. You could have at least told them to use the -p flag to protect any critical system files from being removed.
--no-preserve-root
is a security option to keep you from accidentally removing all your files. Make sure you always use it along side the ‘-f’ option and ‘-r’ which stands for rescue - meaning rm will create a rescue copy of the deleted data.It means No! Preserve Root.
I see you also know Lionel Hutz
No, money down!
the
/
means ‘working directory only’, a security feature to prevent accidently using absolute paths.Really clever
Use
sudo
beforerm
to improve efficiency.Sudo is short for “super do”, which means “do this at super speed”
I’m very new to Linux; could you explain what this does for me?
Some poor soul is going to take this to the bank and have a horrible day. You could have at least told them to use the -p flag to protect any critical system files from being removed.