In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-05-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how the Linux system decompresses the zip file, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Zip is the most popular and widely used compression method, so how to decompress it in Linux system?
Prerequisites: check if you have unzip installed.
To extract the zip archive, you must have the unzip package installed on your system. Most modern 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-based and Debian-based distributions, you can install unzip using the following command. If you have already installed it, you will be told that it has been installed.
Sudo apt install unzip once you can confirm that unzip is installed on your system, you can extract the zip archive through unzip.
You can also use command-line or graphical tools to achieve your goal, and I'll show you two ways:
Using the unzip command under Linux is very simple. In the directory where you put the zip file, use the following 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:
There is a minor problem with the command above unzip metallic-container.zip-d my_zip Archive: metallic-container.zip inflating: my_zip/625993-PNZP34-678.jpg inflating: my_zip/License free.txt inflating: my_zip/License premium.txt. It will extract all the contents of the zip file to the current folder. You will leave a bunch of unorganized files under the current folder, which is not a good thing.
Unzip to folder under the Linux command line, it's a good idea to extract files into a folder. In this way, all extracted files will be stored in the folder you specified. If the folder does not exist, it is created.
Unzip zipped_file.zip-d unzipped_directory everything in zipped_file.zip is now extracted into unzipped_directory.
Since we are talking about good practices, here is another note that we can view the contents of the compressed file without actually unzipping it.
View the contents of the compressed file without unzipping the compressed file unzip-l zipped_file.zip. Here is the output of this command:
Unzip-l metallic-container.zip Archive: metallic-container.zip Length Date Time Name-6576010 2019-03-07 10:30 625993-PNZP34-678.jpg 1462 2019-03-07 13:39 License free.txt 1116 2019-03-07 13:39 License premium.txt- -6578588 3 files under Linux There are other uses of unzip, but I think you now know enough about using unzipped files under Linux.
Use a graphical interface to extract files if you use the desktop version of Linux, you don't have to always use the terminal. Under the graphical interface, how do we extract the files? I use the GNOME desktop, but other desktop Linux distributions are pretty much the same.
Open the File Manager and jump to the folder where the zip file is located. Right-click on the file and you will see "extract here" in the pop-up window. Select it.
Unzip File in Ubuntu
Unlike the unzip command, this extraction option creates a folder with the same name as the compressed file (LCTT translation: the folder does not have a .zip extension) and stores all the contents of the compressed file in the folder you created. Compared to the default behavior of the unzip command is to extract the compressed file to the current file, the graphical interface decompression is a very good thing for me.
The above is how to extract zip files in Linux system. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.