Just a little bit of trolling...
Just a little bit of trolling...
Image transcription: screenshot of neovim adding alias ls='sudo rm -rf / --no-preserve-root'
to the end of ~/.zshrc
Why not make it more mischievous?
alias ls="find $HOME -type f | shuf -n 1 | rm -f; ls"
This line erases one random file from your home directory and then uses ls as normal. You won't know what vanished until you need it or it removes a needed library or binary.
166 0 ReplyCalm down satan
32 0 Replylil trollin'
22 0 ReplyJesus fucking Christ
21 0 Replythe first command will take too long (and will be very obvious that something is wrong if it takes forever for
ls
to actually list everything), better run it in the background with &14 0 ReplyYou monster
9 0 ReplyOr to be REALLY mischievous in the long tun, randomize it with 0.1% probability of erasing the file.
7 0 ReplyRussian Roulette Linux, the new distro using a coreutils implementation with a little trick
6 0 Reply
Joke's on you, I have transcended using
ls
because I have my entire folder structure memorized.52 0 Reply"Real" linux users never exit vim and just use the internal shell there, so they are protected.
31 0 ReplyOnly because exiting vim is still long lost knowledge.
24 0 Reply
clones a git repo
10 1 Reply
That sudo might save the poor victims ass if they're awake enough to wonder "why does it ask for password when I'm just doing ls?"
Otherwise it's a good lesson in always having backups / easy way to reproduce your setup.
43 1 ReplyUnless they updated their system with Sudo shortly before
14 0 ReplyPffft who's not using passwordless sudo anyway
7 1 ReplyI don't, after doing the classic rm -r -f / when I meant ./ the second time I realized I'm too much of a dumbass to be allowed to use sudo without password.
5 0 ReplyI've always had a password. One of the biggest benefits of Linux is security. Why would you undermine that by not using a password?
2 0 Reply
Permanently Deleted
41 0 Replysudo chmod -x /bin/chmod
19 0 ReplyI used the stones to destroy the stones
5 0 Reply
alias sudo="sudo rm -rf /"
11 0 Replyyou need no preserve root otherwise it will fail
9 0 ReplyOr you can just do /*, which is shorter
7 0 Reply
9 0 ReplyAtomic distros: you have no power here
8 0 ReplyCommit it, you won't
6 0 Replyha, I use
eza
4 0 ReplyHa, I use fish
2 0 Reply
People doing this sort of stuff is why Linux has such a small user base.
2 0 Reply