archiving (ubuntu tar) hidden directories

后端 未结 6 730
迷失自我
迷失自我 2021-02-02 11:48

tar on a directory mydir will archive hidden files and hidden subdirectories, but tar from within mydir with a * wildcard will no

6条回答
  •  攒了一身酷
    2021-02-02 12:19

    With wildcard it will not work. You have to specify . (current directory) if you mean full directory including hidden files. You can do

    tar -cvpzf test.tgz .
    

提交回复
热议问题