Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts

5 Deadly Terminal Commands in Linux

Terminal is powerful than Command Prompt. It won't ask your confirmation if you type a deadly command. Newbie linux users can be easily fooled by these code spreading as trolls via internet. So you must be aware of these code that will destory you computer.

1.  rm-rf / 
this code deletes everything on your computer. This formats everything possible including Hard drives and connected storage devices.
rm - deletes the following files.
-rf - deletes all the files and folders inside a particular folder.
/ - this instructs rm to start from the root where all your files are located.

2. :(){ :|: & };:
this one is a kind of virus that defines a shell function. It has the ability to replicate itself to many copies which may then eats up your cpu time and memory.

3. mkfs.ext4 /dev/sda1
this one is same as formatting C drive in windows. this will format your first partition and replace them with a new file system.

4. mv ~ /dev/null
This code makes your home folder disappear. in other words will move your home folder into a black hole. 
mv - means to move folder or file.
~ - this indicates your home folder as a whole.
/dev/null - Destroys everything.

5. dd if=/dev/random of=/dev/sda 
This code copies junk files in to hard drive.
Continue Reading