Top 5 Linux Commands that is very useful and dangerous!!

Hello friends,Today in this post i will tell you about some of the best and amazing linux commands that you must know.

Warning:Please read the content before trying any command in your Linux System.

Top 5 Linux Commands that is very useful and dangerous!! 

1. rm -rf /

This command will Delete Everything from your computer. It is a combination of three keywords. rm will remove all the files followed by this command. -rf will run rm command in the more effective way and will remove all files and folders inside the specified folder without asking confirmation from the user. “/” will start removing the data from the root directory and will delete everything from the computer including the data of removable media.

2. :(){ :|: & };: Sh

This command creates a shell function, which once gets initialized starts to create multiple copies of itself. It results in taking quickly all the memory and power of CPU. It makes computer freeze or not responding. This is also known as Denial Of Service Attack.


This command will Write Any content Directly to a Hard Drive. This command will execute normally as other commands in Linux do. But the output of this command will directly be sent to the file system (NTFS or FAT ) of the Hard Drive. It will result in damaging the file system of the computer.

4. mkfs.ext4 /dev/sda1

This command will format the hard disk. This command is again composed of two keywords. mkfs.Ext4 command will create a new ext4 file system on the following device where this command will get executed. /dev/sda1 specifies the 1st partition on the first hard disk which is probably in use by the user. Similarly, This Command > mkfs.ext3 /dev/sdb2 will Format the second partition on the second hard disk with ext3 File system.

5. mv ~ /dev/null –

This command will turn your home directory into a Black hole. Moving any of your content and data to following path : /dev/null means you want to destroy it. It means /dev/null is a black hole where once anything sent , can not be recovered back.
I hope friends you like this post.Please keep visiting for more updates.

Next Post »