search
HomeCommon ProblemHow to decompress tar.gz

How to decompress tar.gz

Dec 21, 2019 am 11:49 AM
Unzip

How to decompress tar.gz

The file with the suffix ·tar.gz is a kind of compressed file, which is common under Linux and macOS. Both Linux and macOS can directly decompress and use this compressed file.

WinRAR under windows can also be used, which is equivalent to the common RAR and ZIP formats.                                                                                                                                                                               (Recommended learning: phpstorm)

.tar.gz is generally an installation package of source code, which needs to be decompressed first, compiled and installed before it can be executed. All in all it is a compressed file.

Decompression: [*******]$ tar -zxvf FileName.tar.gz

Compression: [*******]$ tar -zcvf FileName.tar.gz DirName

is a tarball file. The so-called tarball file actually means that all the source code files of the software are first packaged with tar and then compressed with compression technology. Usually the most common It's compressed with gzip.

Because the functions of tar and gzip are used, the general file extension name of tarball files will be written as .tar.gz or abbreviated as .tgz.

Installation steps in Red Hat Linux system

Users can also download the compressed file from www.kernel.org or its mirror site. If this is the case, the user must first use the following command to decompress and release the document, where vnum is the version number:

cd /usr/src
gzip -cd linux一2.2.vnum.tar.gz | tar xfv 一

For some revisions, all the user needs to do may be to apply a patch. Make some upgrades to your current kernel source code.

"Patch" is used to make necessary modifications to a source code file.

The process of installing the patch is: download the patch file and execute the following command. The patch file is first decompressed and then modified through the patch command, as shown below:

cd /usr/src
gzip -cd patchvnum.gz | patch -p0

The above is the detailed content of How to decompress tar.gz. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)