I need to create a tarball of a given directory. However, I need to make sure hidden files are included too (such as those beginning with .
).
Will the following command automatically take the hidden files into account?
tar -cvzf packed.tar.gz mydir
If not, how can I make sure I include hidden files?
tar -cvzf packed.tar.gz mydir/.
tar czvf something.tar.gz path
contains them, buttar czvf something.tar.gz path/*
doesn't!