TRÄW🤟 Profile picture
Nov 14, 2021 14 tweets 6 min read Read on X
The Linux🐧 commands you should NEVER use.
Disclaimer DON'T🚫 run these commands.

A thread🧵👇
#CyberSecurity #infosec #Linux Image
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 subdirectories will be deleted and the data will be lost. Image
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. Image
3. Overwrite Hard Drive✍️💿
This command writes raw data (output of the command) to the specified partition. This results in data loss in the hard drive or mentioned partition.
command - this could be any command. Image
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. ImageImage
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. Image
6. Format Hard Drive🧹📀
This command will wipe out your hard drive and makes it new. These should only be used in instances when you have either have your data backup on the cloud or external device. Image
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. Image
8. Breach the System🔓
This cmd doesn’t physically affect your system like 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. Image
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. Image
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 in virtual machine. Any in-consistence or data loss, due to the execution of above command will break your system down.
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.
Here is an explanation for the Fork🍴 Bomb💣 Image
Fork🍴 Bomb 💣 in C-Lang Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with TRÄW🤟

TRÄW🤟 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @thatstraw

Dec 29, 2023
Linux hand-written notes:🧵 ↓ Image
[2] Image
[3] Image
Read 80 tweets
Oct 24, 2023
13 Linux tr command practical examples you should know as a system administrator: Image
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.
Read 29 tweets
Jul 2, 2023
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:

$ useradd -D
Read 18 tweets
Jul 1, 2023
13 useful Linux find command practical examples 🧵↓
{ 1 } Find empty files and delete them:

This will delete all the empty files in the /home/ubuntu directory.

$ find /home/ubuntu/ -empty -delete
{ 2 } Find big files taking too much space so you can delete them blindly:

This will delete files which are greater than 47000k

$ find /home/ubuntu/ -type f -size +45000k -exec ls -l {} \; | awk '{ print $9 }' | xargs rm -i >/dev/null
Read 17 tweets
Jun 30, 2023
Managing directories in Linux🧵↓ Image
You will regularly need to create and delete directories on the Linux system as a system administrator. The mkdir, rm, and rmdir commands make this possible.
Making Directories🐧

Creating a new directory in Linux is simple; simply use the mkdir command. The mkdir command accepts only one parameter: the name of the directory you want to create

$ mkdir backups Image
Read 18 tweets
Feb 12, 2023
If you want to learn bash scripting and start automating tasks, open this:
1: Intro to Linux Shell Scripting (Free course)

This mini-course is designed to help beginners quickly become proficient in Linux shell scripting in only one hour. It is ideal for those who are just starting with a bash shell.

udemy.com/course/linux-s…
2: Linux shell & scripting tutorial

Another great, free Udemy course to learn shell script core so you can get full potential at the command line.

udemy.com/course/linux-u…
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(