We keep on listening that there are dangerous commands in Linux/Unix and are advised not to run those commands. One of those deadly command combination in Linux is “rm -rf /“. Though “rm” is a normal Linux command which we use daily to remove files, but when it is used on root filesystem with “-rf” option it becomes destroyer of operating system.
There is nothing much in explaining this article and this article is crystal clear with its title. I am sure you must be knowing about “rm” command. It is used to remove files or directories in Unix / Linux distros.
Below is the single command which I used to destroy the whole Linux operating system, with its switches or options. I have used -v switch to show what is happening in terminal, otherwise we don’t have any idea what’s going on.
rm -rf /
When I first ran “rm -rf /”, Kali Linux gave me an error and ask to use “–no-preserve-root” switch with the rm command.
Kali Linux is a very intelligent operating system and does not allow to run “rm -rfv /” command even by mistake and gave that warning.
Then I ran “rm -rfv –no-preserve-root /” and the command was executed successfully.
Just in few minutes whole filesystem hierarchy was deleted and nothing was visible. Once the whole Kali Linux operating system is down, you will see grub error as below.
error:file '/boot/grub/i386-pc/normal.mod' not found
Entering rescue mode...
So let’s don’t talk anymore and just watch below video. Hope you will like it.
Note: Do not run this command on production environment.
Do let us know what are your views about this video and provide your feedback. Also, do let me know if you have ever tried running “rm -rf /” on any UNIX/Linux distributions. As always, do not forget to share this article and video and do subscribe to my YouTube channel and this blog.
Incoming search terms:
- kali rm root files