The Linuxπ§ commands you should NEVER use.
β οΈDisclaimer: Don't RUN these commands.
A threadπ§΅π
1. Recursive DeletionπποΈ
This is one of the most dangerous commands. Once this command is run, it deletes all the content of the root directory forcefully and recursively. Thus, all your directories and sub-directories will be deleted and the data will be lost.
2. Fork Bombπ΄π£
My personal bestπ, this is a simple bash recursive function which once executed creates copies of itself which in turn creates another set of copies of itself. This consumes the CPU time and memory. Thus, it runs recursively until the system freezes.
3. Overwrite Hard DriveβοΈπ
This command writes raw data (output of the command) to the specified partition ie sda, sda1..,... This results in data loss in the hard drive or mentioned partition.
cmd- this could be any command.
4. Implode Hard Driveπ³οΈ
These commands will move all the data to a special location in Linux called the black hole (/dev/null). Anything moved to this location is destroyed. Thus if you accidentally move your data to this folder, your data is not going to be recovered anyway.
5. Download and Execute Malicious Scriptβ οΈπ
Wget is a very useful Linux command for fetching/downloading files from the internet. But this command can be dangerous if we blindly download and execute a malicious script.
6. Format Hard Driveπ§Ήπ
This command will wipe out your hard drive and makes it BRAND NEW! Without any data, leaving your system into an unrecoverable stageπ. These should only be used in instances when you have either have your data backup on the cloud or an external device.
7. Write Random Junk to Hard Driveπ²ππ
This command will write random junk data into your drive. The after-effects of this command are that your system will not be recovered.
8. Breach the Systemπ
This cmd doesnβt physically affect your system as the other commands do, but this provides a security breach on the system. By executing this command, you are providing all the users of the system to be able to read, write and execute data on your system.
9. The Hidden (rm -rf /)πποΈ
The below command is nothing but the rm -rf / command above. Here the codes are hidden in hex so that an ignorant user may be fooled. Running the below code in your terminal will wipe your root partition.
10. history | shβΈοΈ
the command can be dangerous too as it executes every command from the command log that you have already executed. The action can make your system unstable and execute commands that you didn't want to execute again.
Please DON'T execute any of the above commands in your Linux terminal or shell or of your friend or school computer. If you want to test them, run them on a virtual machine. Any in-consistence or data loss, due to the execution of the above command will break your system.
That's it! Thank you for reading today's threadπ. If you have other DON'T run commands I have missed, feel free to add them in the comments. Would love to know them as well. And be sure to rtπ, likeπand follow me (@xtremepentest) for more future Linux content.
11. alias ls='sudo rm -rf /'
This command will replace the command ls with 'sudo rm -rf /'. Thus if the command ls is executed it will run Sudo -rm -rf / which in turn will delete everything on your system.π π
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
Looking for a tool that simplifies API management? Introducing Apidog
Designing APIs can be complex, but tools like @ApidogHQ simplify the process. Apidog ( is a comprehensive API design-first development platform that offers numerous features to streamline API development. While many API design and management tools are available, Apidog stands out as a comprehensive solution.
Here's why Apidog is becoming the go-to platform for API design:
1. REAL API Design-first Development Platform
Apidog offers visual tools for API design, development, testing, and documentation. Its elegant UI and compatibility with OpenAPI Specification (OAS) eliminate the need for manual coding.
The platform also supports multi-branch API development, making it ideal for teams working on complex projects.
If you want to learn Linux bash scripting for FREE, open this:
1. Getting Started with Bash Scripting
Bash scripts are a series of commands written in a file that can be executed by the Bash shell. This article will cover the basics of creating and running your first Bash script. sysxplore.com/create-a-bash-β¦
2. Comments in Bash
Commenting your code is an essential practice in programming, as it helps you and others understand the purpose and functionality of each section.
In Bash scripting, comments are used to annotate your scripts, making them more readable and maintainable. This article will cover the different ways to add comments in your Bash scripts. sysxplore.com/comments-in-baβ¦
13 Linux tr command practical examples you should know as a system administrator:
The tr command short for translate, is one of the most useful command for manipulating text on the command line.
It allows you to perform useful operations such as converting lowercase characters to uppercase characters, uppercase characters to lowercase characters, character replacing, and deleting characters.
It is usually used in conjunction with other commands via piping.
Linux user management - how to add users in Linux π§΅β
The useradd command is the main tool for adding new users to a Linux system. This command allows you to quickly create a new user account and configure the user's $HOME directory structure.
The useradd command creates a user account by combining system default settings and command-line parameters.
To see the system default values on your Linux distribution, use the useradd command with the -D option: