How to zip more than one file in one folder in she

2019-08-01 04:44发布

问题:

I am having three files one is .txt ,one is .pdf and the other is .csv . How to zip these three files in open folder and rename the folder.

回答1:

You can do:

zip file.zip file.csv file.pdf file.txt


回答2:

Use Gzip, compress using:

tar -czvf file.tar.gz file1 file2 file3

And extract using:

tar -xzvf file.tar.gz



标签: shell