They say rm
command defaults to the option --preserve-root
. Is that right?
Otherwise I should put the line
alias rm='rm --preserve-root'`
in ~/.bashrc
to make that option happen without typing it every time I run the rm
command. To confirm this I ran type rm
, and got rm is hashed (/bin/rm)
.
I expected rm is aliased to rm --preserve-root
. Does anyone know what's going on with the rm
command?
rm
is not being aliased torm --preserve-root
, but the option is selected by default in therm
binary.From the manpage of rm in Ubuntu 17.10, you can find the following details of the
--preserve-root
and--no-preserve-root
options: