Linux Commands that should be avoided

Status
Not open for further replies.

vineetrocks2005

In the zone
I am presenting some of the most fatal command in Linux, that could harm your OS within no time. Please don’t try these on your Linux distribution.

1. mv /home/yourhomedirectory/* /dev/null

It is a simple command that will move the contents of your “home” directory to a “null” directory (a directory that never existed), hence you will never see that files again.


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

This command will execute a large number of processes until your system hangs. Also known as forkbomb, this command often leads to corruption of data.

3. mkfs.ext3 /dev/sda

This will simply formats the device that is mentioned after the “mkfs” command.

4. rm -rf /

And last but not the least, this command will forcefully delete all the files inside the “root” directory.

Source
 

Faun

Wahahaha~!
Staff member
Well as for second one, I cant really put those smiley in there :/

And most of them are only fatal when used under root account.

Any day, it's a noob's delight to experience them accidentally or amusingly.
 

gary4gar

GaurishSharma.com
2.
Code:
:(){:|:&};:

This command will execute a large number of processes until your system hangs. Also known as forkbomb, this command often leads to corruption of data.
 
Status
Not open for further replies.
Top Bottom