
If you are a Linux user then you’re already aware of how this operating system executes commands instantly without your approval. As a result, users are likely going to lose highly crucial data or information stored in numerous folders and/or files.
Remember to avoid these Linux commands at all costs or prepare to regret later.
Mkfs Commands
Remember that all mkf commands are critical and may bring about severe loss unless you are unaware of its purpose. Adding any command after “mkf.__” will automatically format a file to replace it with an empty Linux file system.
All the following commands will clean your hard drive:
- mkfs
- ext3
- bfs
- ext2
- minix
- msdos
- reiserfs
- vfat
- cramfs
Dd commands
The primary purpose of this command is to copy & convert the partitions of your hard drive. However, this can also turn out to be problematic when a user fails to specify an appropriate destination for her files and/or folders.
- dd if=/dev/hda of=/dev/hdb
- dd if=/dev/hda of=/dev/sdb
- dd if=something of=/dev/hda
- dd if=something of=/dev/sda
- dd if=/dev/zero of=/dev/had (for wiping out everything located in the main hard drive).
Fork bomb commands
Fork bomb or denial of service commands has the ability to temporarily stagnate your Linux OS. Execution of such commands causes your Linux OS to halt as its functions start to expand in number and stop functioning.
Restarting or rebooting your server will solve this issue if you have mistakenly executed any of the following commands
:(){ :|: & };: (){ :|: & };:
Rm –Rf Commands
This command is for deleting folders along with the contents inside them saved in the Linux operating system. These commands could stir lots of troubles unless you are unaware of their uses.
- rm command is used to delete the files in Linux system.
- rm -f command removes read-only files in a folder without prompting.
- rm -r command deletes the content of a folder recursively.
- rm -d command is used to remove an empty directory but it will refuse to remove the directory if it is not empty.
- rm -rf/ command is used for forced deletion (it deletes it even if it’s write protected) of all the content in root directory and sub folders.
- rm -rf* command is used for forced deletion of all the content in the current directory ( the directory you are currently working in) and sub folders.
- rm -rf. command is used for forced deletion of all the content in the current folder and sub folders. The rm -r.[^.]* command can also be used.
- rm -i command is used for removal of files and folders but a prompt will appear before removal.
Compressed bomb
Oftentimes you will receive highly compressed files, not larger than only a few kilobytes. But these extremely compressed files may sometimes contain data sized up to Gigabytes. Once extracted, your whole Linux operating system will get flooded and ultimately slow it down, devastatingly. Accept data only from reliable and trustworthy sources.