Linux Commands that should be avoided

by Vineet Sharma on November 21, 2008

in Linux




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.

 

Some of these commands require root access to the system

Related:

    None Found

Leave a Comment

Previous post:

Next post: