archiving (ubuntu tar) hidden directories

后端 未结 6 856
迷失自我
迷失自我 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:13

    The shell expands the wildcards so tar doesn't even see it. You have to add them explicitly if you want to do that. (.*). However, it's most common to tar a single directory so that when you untar it all goes to the same place.

提交回复
热议问题