ubuntu zip/unzip use

zip command##

zip -r myfile.zip test/

Pack the test directory into myfile.zip.
Run example:

unzip command##

unzip  myfile.zip

Unzip myfile.zip. to the current directory.
Run example:

Extension##

Delete the files in the compressed package####

$ zip -d myfile.zip a.txt

Add files to the compressed package####

$ zip -m myfile.zip a.txt

List of corresponding parameters####

Parameters Description
- x The file list decompresses the file, but does not include the specified file file.
- v View the compressed file directory, but do not decompress.
- t Test whether the file is damaged, but do not decompress it.
- d Directory Unzip the compressed file to the specified directory.
- z Only show the comments of compressed files.
- n Do not overwrite existing files.
- o Overwrite an existing file without requiring user confirmation.
- j Do not rebuild the directory structure of the document, extract all files to the same directory

reference##

Detailed explanation of ubuntu linux zip and unzip commands

Recommended Posts

ubuntu zip/unzip use
Ubuntu use notes
Use supervisor in ubuntu
ubuntu 14.04 16.04 18.04 use Alibaba source
Use of Anaconda in Ubuntu
Use sublime tex under ubuntu
Use of mediawiki under ubuntu
Use virtualbox to deploy ubuntu
How to use hanlp in ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
Use disk quota in ubuntu multi-user
Ubuntu 20.04 use must install tool software
Use Ubuntu 16.04 for initial server setup
Use mendeley to insert references under ubuntu
Ubuntu18.04 Server version installation and use (graphic)
How to use Samba server on Ubuntu 16.04
Ubuntu software
Installation and use of Win10 subsystem Ubuntu
Linux (ubuntu 12.04)
Use python3 to install third on ubuntu
windows use ubuntu to start linux service
How to use Prometheus to monitor your Ubuntu 14.04 server
How to configure TensorFlow use environment in Ubuntu
Summary of methods to use Evernote under Ubuntu 14.04
Use rsync to remotely backup data under Ubuntu
Install and use Git and GitHub on Ubuntu Linux
How to use Nginx's map module on Ubuntu 16.04
Use the command to solve the Ubuntu projector problem:
How to install and use Docker on Ubuntu 20.04
How to use dpkg command in Ubuntu system
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to use Docker data volumes on Ubuntu 14.04
Use doxygen to generate API documentation under Ubuntu 12.04
Use Ubuntu and windows system in virtual machine
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to use Jenkins to build automatically on Ubuntu
The use of crontab for ubuntu scheduled tasks
How to install and use PostgreSQL on Ubuntu 16.04
Introduction to the use of Hanlp in ubuntu
Installation and use of SSH in Ubuntu environment
How to install and use Docker on Ubuntu 16.04