DIGIT-ARC read-only archive · snapshot: July 23, 2026

Linux Commands that should be avoided

6 posts · originally from https://geek.digit.in/community/threads/linux-commands-that-should-be-avoided.102582/

V
vineetrocks2005 Original post #1
Nov 21, 2008 at 11:17 AM
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
Faun #2
Nov 21, 2008 at 12:39 PM
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.
Garbage
Garbage #3
Nov 21, 2008 at 1:20 PM
Code:
$ mv T159 /dev/null
:D
gary4gar
Nov 21, 2008 at 1:57 PM
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.
Faun
Faun #5
Nov 21, 2008 at 2:02 PM
^^
func()
{
func | func&
}

func
MetalheadGautham
Nov 21, 2008 at 2:41 PM
Code:
#!/bin/sh

echo "Gautham is a n00b at bash scripting"

echo "Don't execute this command as root"

Try running it as root :rolleyes: