In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to extract Zip,Gz,Tar,Bz2,7z,Xz and Rar files from Linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
An archive file is a file made up of one or more files in compressed format, which is useful for saving disk storage, and it is easier to manage a single file than to manage multiple files. This article will help you unzip or extract the archived files of the Linux system.
How to extract a .zip file:
This is the most common compression format used by various IT professionals on many operating systems. To do this, we must unzip the binaries installed on the system.
$unzip filename.zip
How to extract .gz files:
Gz files are compressed files created using the gzip compression utility. Generally speaking, gzip is better at compression than zip, especially when compressing a large number of files. You can use the gunzip command to extract .gz archive files.
$gunzip filename.gz
How to extract a .tar file:
Tar is a tape archive, also known as tarball. This is another popular archiving method, also known as the unified Unix archiving format. To extract the .tar file, use the following command
$tar-xvf filename.tar
How to extract a .tar.gz file:
A tar.gz file is a combination of tar and gzip files. If more data is provided in compressed format. You can use-z switch to extract these files.
$tar-xzf filename.tar.gz
How to extract .tar.xz files:
XZ format is a single file compression format and does not provide archiving capabilities. It retains the original data and will not cause quality loss. You can extract these files using-Jswitch.
$tar-xJf filename.tar.xz
How to extract a .tar.bz2 file:
Tar.bz2 is a combination of tar and bzip2 archive formats. You can use-j to filter archived files through bzip2. Use the following command to extract the .tar.bz2 zip file.
$tar-xjf filename.tar.bz2
The latest version of tar automatically detects the archive format. So you can simply use the following command.
$tar-xf filename.tar.gz
How to extract .7z files:
These files are 7zip archive files. This is not usually used on Linux systems, but sometimes it may be necessary to extract some source files. The 7zip package must be installed on your system. Use the following command to extract these files.
$7z x filename.7z
How to extract .rar files:
These are common archive formats in Windows systems, but Linux users will avoid using them. However, there may be times when you need to extract .rar files on Linux. You can use the 7Z command to extract this command or unrar to cancel.
$7z x filename.rar # using 7zip$ unrar x filename.rar # using Unrar above is how to extract Zip,Gz,Tar,Bz2,7z,Xz and Rar files in Linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.