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 write the linux decompression zip command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the linux decompression zip command how to write, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Linux extract zip command: 1, directly in the directory where the zip file is put, code is [unzip zipped_file.zip]; 2, extract to the folder, code is [unzip zipped_file.zip-d unzipped_directory].

Linux extract zip command:

1. Use the command line to extract the file

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

You 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) inflating: my_zip/License premium.txt

There is a small problem with the above command. 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. Unzip it to the 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, operation: unzip zipped_file.zip-d unzipped_directory, then everything in the zipped_file.zip will now be extracted from the 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.

3. View the contents of the compressed file without decompressing the compressed file

Operation command:

Unzip-l zipped_file.zip

4. 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 another option [extract to. ] is that you can select a specific folder to store the extracted files.

I believe that after reading the users have learned how to extract zip files under the Linux system, you can choose their own way to operate!

Thank you for reading this article carefully. I hope it will be helpful for everyone to share the linux decompression zip command how to write the content. At the same time, I also hope that you will support more, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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

Servers

Wechat

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

12
Report