In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the specific scheme for decompressing the Linux system. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Zip is one of the most popular archive file formats, and it is also the most common compressed file under Window, so how to extract zip files in Linux?
Using the command line to extract the file 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.
There is also an option "extract to", where you can select a specific folder to store the extracted files.
On the Linux system decompression of the specific program is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.