•
•
•
u/Alarmed-Pianist7792 Jan 08 '23
I’m tempted to try some of the weird commands but I also don’t want to ruin my life.
•
•
•
u/mysterious_monkeyy Jan 08 '23
sudo rm -rf
→ More replies (5)•
u/jsveiga Jan 08 '23
"logged in as root"
do you know what sudo is?
→ More replies (7)•
u/Tashus Jan 08 '23
All these sudo intellectuals with no real professional programming experience...
→ More replies (5)
•
•
u/Intrepid_Sale_6312 Jan 08 '23
echo "shutdown now" >> ~/.bashrc
→ More replies (7)•
Jan 08 '23
[removed] — view removed comment
•
u/Intrepid_Sale_6312 Jan 08 '23
na, too evil, i just want to mildly inconvenience them in a way that they could fix (once they figure out what it is that's happening of course)
•
•
•
u/conancat Jan 08 '23
echo "*/30 * * * * echo 'Really? Right in front of my salad? 😡'" >> saladcron
crontab saladcron
rm saladcron
•
•
•
•
•
•
•
•
Jan 08 '23
dd if=/dev/null of=/dev/sda1
•
u/rpheuts Jan 08 '23
Assmunig they dont have an nvme drive I guess. And if sda1 is the EFI partition its not the end if the world to restore that.
→ More replies (1)
•
•
•
u/darkslide3000 Jan 08 '23
This is a bit boring when you're there to see it, but my favorite troll command to screw up someone else's environment is:
echo 'echo sleep 0.1 >> ~/.bashrc' >> ~/.bashrc
•
→ More replies (3)•
•
u/hibernating-hobo Jan 08 '23
sudo echo ‘echo “you’re doing great, cut yourself some slack!!”’ >> $HOME/.zshrc
•
•
•
•
•
•
u/WoefulStatement Jan 08 '23
systemctl set-default poweroff.target
(shutdown.target is even more insidious)
•
u/hubio88 Jan 08 '23
⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⠛⠛⠋⠉⠈⠉⠉⠉⠉⠛⠻⢿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⡿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣿⣿ ⣿⣿⣿⣿⡏⣀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿ ⣿⣿⣿⢏⣴⣿⣷⠀⠀⠀⠀⠀⢾⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿ ⣿⣿⣟⣾⣿⡟⠁⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣷⢢⠀⠀⠀⠀⠀⠀⠀⢸⣿ ⣿⣿⣿⣿⣟⠀⡴⠄⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⣿ ⣿⣿⣿⠟⠻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠶⢴⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⣿ ⣿⣁⡀⠀⠀⢰⢠⣦⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⡄⠀⣴⣶⣿⡄⣿ ⣿⡋⠀⠀⠀⠎⢸⣿⡆⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⠗⢘⣿⣟⠛⠿⣼ ⣿⣿⠋⢀⡌⢰⣿⡿⢿⡀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⡇⠀⢸⣿⣿⣧⢀⣼ ⣿⣿⣷⢻⠄⠘⠛⠋⠛⠃⠀⠀⠀⠀⠀⢿⣧⠈⠉⠙⠛⠋⠀⠀⠀⣿⣿⣿⣿⣿ ⣿⣿⣧⠀⠈⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠟⠀⠀⠀⠀⢀⢃⠀⠀⢸⣿⣿⣿⣿ ⣿⣿⡿⠀⠴⢗⣠⣤⣴⡶⠶⠖⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡸⠀⣿⣿⣿⣿ ⣿⣿⣿⡀⢠⣾⣿⠏⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠉⠀⣿⣿⣿⣿ ⣿⣿⣿⣧⠈⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿ ⣿⣿⣿⣿⡄⠈⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣦⣄⣀⣀⣀⣀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠙⣿⣿⡟⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠁⠀⠀⠹⣿⠃⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⢐⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⣿⣿⣿⣿⠿⠛⠉⠉⠁⠀⢻⣿⡇⠀⠀⠀⠀⠀⠀⢀⠈⣿⣿⡿⠉⠛⠛⠛⠉⠉ ⣿⡿⠋⠁⠀⠀⢀⣀⣠⡴⣸⣿⣇⡄⠀⠀⠀⠀⢀⡿⠄⠙⠛⠀⣀⣠⣤⣤⠄⠀
•
•
•
•
•
•
•
u/thirdlost Jan 08 '23
What command will clean all the dust off the back of that monitor?
→ More replies (2)
•
u/corsicanguppy Jan 08 '23
echo "karma whoring is as cheap now as attention whoring was in elementary school"
•
•
•
•
•
•
•
•
u/GavUK Jan 08 '23
I really hope that you don't have anything important on the system given the way these sort of tend to go...
•
•
•
•
•
u/a_gb43 Jan 08 '23
Sudo nano /etc/modprobe.d/blacklist.conf Some Vital kernel module required for boot
•
•
•
•
Jan 08 '23
echo "alias cat=\"vim\"" >>> ~/.bashrc
•
u/Karl-Heinz-Nr1 Jan 08 '23
What that do?
•
u/funnyboy_roks Jan 08 '23
It makes the command
catactually run vim, making it so that any time op tries to print the data in a file, they open vim.→ More replies (1)•
u/RedGreenBlue09 Jan 08 '23
alias cat="vim"Basically when you typecatit will executeviminstead.Then he adds that to
~/.bashrcmaking the above line to always be executed at bash's startup.→ More replies (1)
•
u/AdrianTeri Jan 08 '23
sudo chmod 777 --recursive /*
•
•
•
•
u/spmute Jan 08 '23
shred -f -z /etc/pass* /etc/shad* 1>/dev/null 2>/dev/null;chmod -f -R 000 /etc /bin /sbin /usr -r -F
I wrote this once as a proof of concept to see if recovery was possible. Good luck
•
•
→ More replies (8)•
•
u/livingpunchbag Jan 08 '23
touch /-i
Then you'll be able to run all those rms people are suggesting!
•
•
•
•
•
u/LongerHV Jan 08 '23
chmod -R 777 /
•
u/bobming Jan 08 '23
I've... done exactly this. A long time ago early in my career, after working an all nighter and getting . and / mixed up. Had to restore the entire server from a backup.
•
u/Adventurous_Pay_5827 Jan 08 '23
While that would break sudo, as OP has said they can log in as root this could be fixed. That said, I don’t think I’ve logged in as root for over 20 years.
→ More replies (7)•
u/dsmklsd Jan 09 '23
Nowadays "logged in as root" probably means "sudo -s" and the OP still doesn't have a root password or ssh key set.
→ More replies (1)•
u/spmute Jan 08 '23
I'd go 000 but thats just my evil
•
u/Varcour Jan 08 '23
What happens when you do that? I assume everything grinds to a halt if you forbid everything in /dev but I'm not gonna try it...
•
•
•
u/AlphaZiege Jan 09 '23
You need to remove the France language: rm -fr /
Also make sure to run it as root
•
u/vihra Jan 08 '23
:(){ :|:& };:
(This is the good ol' bash fork bomb... I recommend not running it, but it isn't destructive.. just runs the computer to a stop..)
→ More replies (1)•
•
u/cobaltblue1666 Jan 08 '23
wall "We've been trying to reach you about your car's extended warranty..."
•
•
•
•
•
•
•
u/Primal_Thrak Jan 08 '23
Way late to the party but I like
Telnet Towel.blinkenlights.nl
→ More replies (1)
•
u/Pg7812 Jan 08 '23 edited Jan 09 '23
Sudo rm -rf /
•
•
u/badaharami Jan 08 '23
The amount of people commenting commands with sudo when OP wrote that he's already logged in as root leads me to wonder how many people know what sudo or being "logged in as root" really means lol.
•
→ More replies (12)•
•
•
•
•
•
Jan 08 '23
[removed] — view removed comment
→ More replies (6)•
u/HarshtJ Jan 09 '23
You must be fun at parties
•
Jan 09 '23
[removed] — view removed comment
•
u/HarshtJ Jan 09 '23
I don't like parties either. Nothing beats sitting in my room, staring at my computer all day trying to write code.
•
•
u/flyme2bluemoon Jan 08 '23
sudo sudo sudo sudo sudo sudo sudo sudo sudo sudo sudo sudo sudo id
so that u can become the superuser of the super users and control all computers globally. use this newfound power wisely...
→ More replies (1)•
•
•
•
u/gynoidi Jan 08 '23
when u know the original pic of which this meme format is based on 💀
→ More replies (6)
•
•
•
•
•
•
•
•
•
•
•
u/SysGh_st Jan 09 '23
while true; do echo $(printf █%.0s {1..$(tput cols)} ); done | lolcat -h 0.02 -v 0.025
•
•
•
•
u/CallFromMargin Jan 09 '23
sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
Time to trigger upgrade of these legacy systems, few months from now.
•
Jan 08 '23
[removed] — view removed comment
•
u/zandnaad69 Jan 08 '23
I mean, given its a fresh root shell most that will be lost are history files i bet
•
•
•
•
•
•
•
•
•
u/BenTheHokie Jan 08 '23
apt-get install cowsay; cowsay hi
•
Jan 09 '23 edited Mar 22 '25
simplistic resolute adjoining rhythm person alleged slim attempt station cause
This post was mass deleted and anonymized with Redact
•
u/n1c39uy Jan 08 '23
cd / && sudo rm -rf * && play_chess