How to zip multiple files into one zip file.
Using zip.
zip test.zip *.txt
Using tar.
tar cvzf test.tar.gz *.txt
Untar in current directory or specify another directory.
tar xvzf test.tar.gz .
tar xvzf test.tar.gz -C /path/to/dir
cloud engineer
How to zip multiple files into one zip file.
Using zip.
zip test.zip *.txt
Using tar.
tar cvzf test.tar.gz *.txt
Untar in current directory or specify another directory.
tar xvzf test.tar.gz .
tar xvzf test.tar.gz -C /path/to/dir