• nogrub@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    8 months ago

    never execute “sudo rm -r / --no-perserve-root” because you whole sytem will be gone edit i forgot the directory

    • Damage@feddit.it
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      8 months ago

      the -delete option in find goes AFTER the expression.

      find -delete [whatever] will delete EVERYTHING in the current directory and below, like rm -rf *

      • Faresh@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        Huh. I wonder if GNU find should be modified, so that -delete only works when explicitly given a directory.