Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to decompress zip File under Linux system

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to extract the zip file under the Linux system, the article is very detailed, has a certain reference value, interested friends must read it!

Zip in Linux is a common way to create compressed archive files, and it is also the most popular file archive format.

In order to extract the zip archive, you must first install the unzip package on the Linux system. Most Linux distributions provide support for unzipping zip files, but there is always no harm in verifying these zip files to avoid future corruption.

On Unbutu-and Debian-based distributions, you can install unzip using the following command:

Sudo apt install unzip if the Linux system has been installed, it will be told that it has been installed. Once you can confirm that unzip is installed on the system, you can extract the zip archive through unzip. You can also use the command line or graphical tools to achieve your goal, and here's how to do it.

1 extract *, extract the file using the command line * *

Using the unzip command on the Linux system is very simple, directly in the directory where the zip file is placed, with the following operation command:

Unzip zipped_file.zip can provide an unzipped path to the zip file instead of unzipping to the current path. You will see the extracted file in the terminal output:

1) unzip metallic-container.zip-d my_zip 2) Archive: metallic-container.zip 3) inflating: my_zip/625993-PNZP34-678.jpg 4) inflating: my_zip/License free.txt 5) there is a minor problem with the command on inflating: my_zip/License premium.txt. It will extract all the contents of the zip file to the current folder, and then leave a bunch of unorganized files under the current folder, which is not a very ideal operation.

2 extract *, decompress to folder * *

Under the command line of the Linux system, it is a good operation to extract files into a folder, because in this way, all extracted files will be stored in the specified folder, and if the folder does not exist, the folder will be created.

For example, the operation: unzip zipped_file.zip-d unzipped_directory, then everything in zipped_file.zip will now be extracted into unzipped_directory.

What we want to pursue is convenient operation, so here is a note that we can view the contents of the compressed file without actually decompressing it.

3upload *, view the contents of the compressed file without unzipping the compressed file * *

Operation command:

Unzip-l zipped_file.zip4, use the graphical interface to extract the file

If the user is using the desktop version of the Linux system, then you can not always use only the terminal, in the graphical interface, you can use another mode of operation.

Open the File Manager and jump to the folder where the zip file is located. Right-click on the file, you will see the [extract here] option in the pop-up window, click Select.

Unlike the unzip command, this extraction option creates a folder with the same name as the compressed file and stores all the contents of the compressed file in the created folder. The default behavior relative to the unzip command is to extract the compressed file to the current file, the graphical interface operation is very simple.

Note that there is also an option [extract to.] that is, you can select a specific folder to store the extracted files.

The above is all the contents of the article "how to extract zip files under Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report