zip multiple files into one zip
How to zip multiple files into one zip file.
Using zip.
<pre lang="bash">
zip test.zip *.txt
Using tar.
<pre lang="bash">
tar cvzf test.tar.gz *.txt
Untar in current directory or specify another directory.
<pre lang="bash">
tar xvzf test.tar.gz .
tar xvzf test.tar.gz -C /path/to/dir