|
|
|
|
|
by fabianhjr
448 days ago
|
|
`rm -rf /` does have a safeguard: > For example, if a user with appropriate privileges mistakenly runs ‘rm -rf / tmp/junk’, that may remove all files on the entire system. Since there are so few legitimate uses for such a command, GNU rm normally declines to operate on any directory that resolves to /. If you really want to try to remove all the files on your system, you can use the --no-preserve-root option, but the default behavior, specified by the --preserve-root option, is safer for most purposes. https://www.gnu.org/software/coreutils/manual/html_node/Trea... |
|