archiving (ubuntu tar) hidden directories

Posted by broiyan on Stack Overflow See other posts from Stack Overflow or by broiyan
Published on 2011-01-01T02:13:40Z Indexed on 2011/01/01 2:54 UTC
Read the original article Hit count: 314

Filed under:
|
|
|

tar on a directory "mydir" will archive hidden files and hidden subdirectories, but tar from within "mydir" with a wildcard will not. Is this a longstanding and known inconsistency or bug or is it that hardly anybody ever looks inside a lengthy tar log long enough to notice?

Edit (additional information): tar from within "mydir" with a wildcard will not "see" nor archive hidden files and hidden subdirectories in the immediate directory, with emphasis on "immediate". However, in subdirectories of "mydir" (obviously non-hidden) hidden files and hidden subdirectories will be archived.

© Stack Overflow or respective owner

Related posts about linux

Related posts about ubuntu