Hi,
Is there any difference if files are individually zipped and archived in a directory or if files are moved into archiving directory and zipping that directory.
Hi,
Is there any difference if files are individually zipped and archived in a directory or if files are moved into archiving directory and zipping that directory.
I'm confused.
What you probably want to do.
tar cvf mytarball.tar ./mydirectory
gzip mytarball.tar
# gives a final product: mytarball.tar.gz
This way you do not lose the directory itself.
Thanks jim mcnamara,
The point is from space point of view,
both are same?
If we zip the files first, move them into a directory and zip the directory again will save the space than the second one?
To zip the directory with all zipped files will use more space than zip the directory directly.