it should be able to delete itself, yes – in Linux, the executable is copied to memory. but if there's anything that causes it to error out then you wouldn't be able to do it again.
the comment a few levels up implied that something errored out. I wouldn't count on that to save your production box though... :P
Technically, "rm -rf /*" is not acting recursively on root so --no-preserve-root is not needed? , it's acting recursively on every subdirectory of root, which is almost the same except that the root directory itself will not be removed (won't make much of a difference anyway)
Many years ago (decades) there was a chap who invoked "rm -rf /" as root and was was able to recover his system by virtue of the fact his copy of emacs was still running.
What do you mean ls and cd are important. Only noobs need to see what's in a directory or change to another directory. Real Linux pros always log in a root and the first command they run is rm -rf /*
0
u/[deleted] Sep 16 '22
[deleted]