Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • This is a cool feature! Commented Jan 17, 2022 at 20:10
  • 2
    Thanks, But how to remove the 0 byte . folder beside other files in the archive? This method still keeps that . folder inside archive. Commented Jan 24, 2022 at 11:16
  • @DummyBeginner I don't know, (cd /foo && tar czvf /bar/archive.tar.gz * .*) seems to be the best solution. Commented Jan 25, 2022 at 5:05
  • @mpen Yes, I think so., Although the .* at the end of cd /foo && tar czvf /bar/archive.tar.gz * .* is apparently redundant. Commented Jan 25, 2022 at 6:25
  • 1
    @DummyBeginner Depends on your bash flags, whether or not you have the dotglob flag set I think it is Commented Jan 25, 2022 at 7:10