


How to unzip a file using unzip command
Jan 23, 2019 pm 04:43 PMThe unzip command is used to expand documents compressed in zip format. In this article, we will introduce the specific method of using unzip to decompress files under Linux.
#ZIP format files are a compression format, usually used to compress directories and multiple files, and the extension of ZIP compressed files is ".zip".
ZIP is a compression format used not only on Linux but also on various operating systems such as Windows and Mac.
The unzip command is written as follows
$ unzip 目标文件
Basically, if a zip file is specified as a parameter, the file will be expanded.
Selection of unzip command
Description | |
Run-time output result | |
Specify and expand the directory | |
Confirm the contents of the compressed file | |
Test whether it can be decompressed normally |
How to use the unzip command
We will use the unzip command to unzip the document "test.zip".$ unzip test.zip
$ replace test/test1.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
Specify the directory when using -d to decompress
If you want to use the unzip command to expand the ZIP file in the specified directory, please use the "-d" option. The following is the unzipped document in the directory tmp.$ unzip -d tmp test.zip
-l Confirm the contents of the compressed file
$ unzip -l test.zip
Use -t to test whether it can be decompressed normally
$ unzip -t test.zip
The above is the detailed content of How to unzip a file using unzip command. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Tutorial on finding keywords for common Linux commands

Work content of Linux operation and maintenance engineers What does Linux operation and maintenance engineers do?

How do I configure SELinux or AppArmor to enhance security in Linux?

How do I back up and restore a Linux system?

Methods for uploading files for common Linux commands

How do I monitor system performance in Linux using tools like top, htop, and vmstat?

How do I configure a virtual private network (VPN) in Linux using OpenVPN or WireGuard?

How do I implement two-factor authentication (2FA) for SSH in Linux?
