views
Linux Zip Command - javatpoint
Zip is a file packaging and compression utility for Unix. All the files are stored inside a single file, i.e., .zip {.zip-filename} along with the .zip extension.
Unzip can extract, test, or list files from the ZIP archive which is commonly detected on Unix. The default nature is for extracting into the current directory each file through the particular ZIP archive.
1. -d Option: This option removes any file through the zip archive. We can remove any file through the archive with the help of the -d option after making a zip file.
Syntax:
2. -u Option: This option can update the file inside the zip archive. It could be used for updating the described list of files or adding new files to an existing zip file.
We can update the existing entry inside the zip archive if only it has been changed more recently as compared to the version that already existed within the zip archive.
Syntax:
3. -m Option: After zipping, this option deletes the real files. Transfer the particular files into a zip archive as it deletes the target files/directories after creating the specified zip archive.
In case, if the directory becomes unoccupied after the removal of the file, the directory is also removed. Until zip has made the archive without any error, no deletion is done.
It is useful to conserve disk space; however, it is potentially unsafe to remove every input file.
Syntax:
4. -r Option: To recursively zip a directory, use the zip command with this -r option and it will zip specified files inside the directory recursively. This option supports us to zip every file that existed inside the specified directory.
Syntax:
5. -x Option: This option can exclude the specified files in making the zip. For example, we are zipping every file in the directory and wish to exclude a few unwanted files. We can exclude the unwanted files with the help of this option.
Syntax:
6. -v Option: Print diagnostic or verbose mode version info. It enables a progress indicator display during requests verbose diagnostic and compression info about oddities of zip file structure when normally e applied to the original operations.
The diagnostic screen will be e printed if -v is the single command-line argument, and either stdout or stdin are not redirected to any file. In extension to the help screen header along with release date, version, and program name, a few pointers to the distribution sites and Info-ZIP home are given.
It then displays information about the destination environment (compiler version and type, compilation date, OS version, and the enabled options aspects used for creating a zip executable.
Syntax:
SoapUI
RPA
Manual T.
Cucumber
Appium
PostgreSQL
Solr
MongoDB
Gimp
Verilog
Teradata
PhoneGap
Aptitude
Reasoning
Verbal A.
Interview
Company
AI
AWS
Selenium
Cloud
Hadoop
ReactJS
D. Science
Angular 7
Blockchain
Git
ML
DevOps
DBMS
DS
DAA
OS
C. Network
Compiler D.
COA
D. Math.
E. Hacking
C. Graphics
Software E.
Web Tech.
Cyber Sec.
Automata
C
C++
Java
.Net
Python
Programs
Control S.
Data Mining
Hindi100
Lyricsia
Website Development
Android Development
Website Designing
Digital Marketing
Summer Training
Industrial Training
College Campus Training
Address: G-13, 2nd Floor, Sec-3
Noida, UP, 201301, India
Contact No: 0120-4256464, 9990449935
© Copyright 2011-2018 www.javatpoint.com. All rights reserved. Developed by JavaTpoint.