Linux zip compression and decompression commands

zip all.zip *.jpg #Compress all .jpg files into a zip package

unzip all.zip #Unzip all files in all.zip to the current directory

unzip all.zip -d all #Unzip all files in all.zip to the all folder in the current directory

zip -r hy.zip hy #Compress the hy folder in the current directory to hy.zip

zip -r hy.zip hy 123.txt #Compress the hy folder and 123.txt in the current directory to hy.zip

Guess you like

Origin blog.csdn.net/wwqcherry/article/details/106082608