So I set my password to

sudo rm -rf --no-preserve-root /
  • Supercrunchy@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    منذ 3 أيام

    Oh yes, the classic rm -fr ~ I wouldn’t be surprised if current AI models would try to do the same command for deleting a folder named ~

    Another fun one is rm -fr .* if you want to delete dotfiles (hint: .. ).

    Sometimes it’s just better to open the file manager, select files and hit delete manually.

    • KubeRoot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      منذ يوم واحد

      Another fun one is rm -fr .* if you want to delete dotfiles (hint: .. ).

      Does that actually match ..? I feel like that would’ve screwed me over, and like it would also mean just * would also expand to .. if it was the case.

    • REDACTED@infosec.pub
      link
      fedilink
      arrow-up
      1
      ·
      منذ يومان

      Sometimes it’s just better to open the file manager, select files and hit delete manually.

      Linux in a nutshell