G getopt ␢ Oct 6, 2015 #1 I try to add all hidden files (like .cshrc) to an tar archive. Problem is that ".*" is interpreted as the current directory. How should that be done?
I try to add all hidden files (like .cshrc) to an tar archive. Problem is that ".*" is interpreted as the current directory. How should that be done?
T tobik@ Developer Oct 6, 2015 #2 For example: tar -cvf bla.tar --exclude . --exclude .. .* Or specify the absolute path: tar -cvf bla.tar ~/.* (maybe add --strip-components) Add -n if you don't want to recurse into hidden sub-directories.
For example: tar -cvf bla.tar --exclude . --exclude .. .* Or specify the absolute path: tar -cvf bla.tar ~/.* (maybe add --strip-components) Add -n if you don't want to recurse into hidden sub-directories.