• PlexSheep@infosec.pub
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

    Thanks for the explanation, I might use more pipes now. Is it correct, that tar will restore the files in the tarball in the current directory?

    • AVincentInSpace@pawb.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Yes. You can specify tar -C somedir if you want it to extract them somewhere else.

      As a rule of thumb, I always extract my tarballs in a newly created, empty directory, just in case whoever packed it didn’t put all its files in a subdir