• clemdemort@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          1 year ago

          cat is actually used to concatenate files so if you have two files that you want to merge into a third one you can do

          cat file1 file2 > file3

          Especially useful for cracking old games

          • Damage
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            Especially useful for cracking old games

            what?

            • clemdemort@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I’ve used cat to actually concatenate files a lot to re-assemble old Wii games once they were copied to a SIM card, less than using it to see inside a file though. Maybe cracked isn’t the correct word I’m not English lol.

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

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

          • Damage
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            1 year 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
              ·
              1 year ago

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