It gives unbridled power to the programmer to execute commands without being worried of errors.
One of the easiestLinux commandsis for file deletion.
But a little typo or ignorance may result into unrecoverable system damage.
The some of options used withrm commandare.
Hence, be careful when you are executingrm -rfcommand.
Note, these days on most Linux systems if you tried doing this youd get a warning.
But the warning isnt guaranteed, so just dont do it.
It keeps on executing again and again till the system freezes.
Thisfork bombcommand defines a function named:that recursively calls itself twice when executed.
One of the recursive calls happens in the foreground while the other happens in the background.
In other words, whenever this function executes, it spawns two child processes.
Those child processes spawn their own child processes, and this cycle keeps going in an infinite loop.
The only way out of it is to reboot the system.
Overwrite Hard Drive
Never use this command if your workstation contains life long work.
In the command above,commandcan be replaced by any Bash command.
The>operator redirects the output from the command on its left to the file on its right.
In this case, it doesnt matter what the output of the left command is.
That raw data is being redirected and used to overwrite the system hard drive.
This renders your Linux PC/laptop useless.
Wipe Hard Drive
This command will completely wipe out your hard drive.
No data corruptions or overwrites; it will literally fill your hard drive with zeroes.
Theddcommand is a low-level instruction thats mostly used to write data to physical drives.
Theofparameter determines the destination of those zeroes, which is the/dev/hdadrive.
file Command
The above command is used to flush the content of file.
You must have understood what I was alluding to.
Running any command with /dev/null can shred that particular data file.
However using the /dev/null with some other commands can be quite devastating for you.
The abovemvcommand tries to move the systems root directory/into the black hole of/dev/null.
Doing this will make your system unusable.
This command is used to edit the previous run command without the need of retyping the whole command again.
Its best to stay away from these commands unless youre absolutely sure you know what youre doing.
Wget command will download the script and sh will execute the downloaded script.
source: www.techworm.net