In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to decompress the zip file under the Linux system. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Linux system to extract zip files: 1, use the command line to extract the file, code for [unzip zipped_file.zip]; 2, view the contents of the compressed file without decompressing the file, code for [unzip-l zipped_file.zip].
The method of decompressing zip file under Linux system:
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, 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.
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.
The above is the editor for you to share how to extract the zip file under the Linux system, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, 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.