3 ms·
The Linux commands you should Never use
- eesmith 9y agoThis list, or rather lists like it, occur pretty often. See https://techcaption.com/deadly-linux-commands-destroy-computer/ https://techcaption.com/deadly-linux-commands-destroy-comput... (from 2 months ago) and https://www.techworm.net/2016/10/10-lethal-linux-commands-never-execute.html https://www.techworm.net/2016/10/10-lethal-linux-commands-ne... (from 14 months ago). Thing is, I don't think the authors actually verified that all of these commands are as dangerous as claimed. POSIX 2008 required a special check for "/". Userspace tools like those in Solaris, FreeBSD, and GNU coreutils had a special check before then. https://unix.stackexchange.com/questions/410759/since-when-do-the-posix-and-gnu-rm-not-delete https://unix.stackexchange.com/questions/410759/since-when-d... . On a FreeBSD machine I get "rm: "/" may not be removed". Though I see that BusyBox 1.24.2 lets me do it. When I try "mv / /dev/null" with Busybox I get "mv: can't overwrite non-directory with directory". On a FreeBSD machine it says "mv: rename / to /dev/null: Is a directory"