5 very dangerous commands on Linux

I present a list of five commands never to use on your Linux machine, but you can possibly test them on a virtual machine.

Some malicious users can post in a forum or IRC chat dangerous commands that destroy the system, or data.

We must be careful and know the functioning of these commands to avoid using them without thinking.

rm -rf /

This command simply clears all files on your hard drive. Once deleted, files can not be recovered.

mkfs.ext3 / dev / sda

Mkfs is a command used to format hard drives. Here it will erase data on the disk / dev / sda.

: () {: |: &};:

This command is actually a fork bomb. When launched, your system will be forced to create process until the memory is full. Which forces you to make a sudden stop and can cause system corruption.

mv ~ / * / dev / null

Move a file or directory to / dev / null returns to put in the trash.
/ dev / null is the equivalent of the final basket, any files sent to this event will also be deleted. And this without possibility of restoration.

dd if = / dev / zero of = / dev / sda

This command will write zeros in all blocks of the hard drive and results in total data loss. That is to do a full format.

Remember that the best support for this blog is to like and share our articles! 😉
Previous
Next Post »