850K Subscribers . 480K Views
Welcome to the Video- "Tar.gz file compress Linux | Linux Tip and Tricks 2020 | Linux Server"
In this video we will see How to compress Tar.gz file Centos Linux Server
A TAR.GZ file is a compressed archive file that is created using two different utilities on Linux - tar and gzip.
Here's how you can create a TAR.GZ file in Linux:
Open the terminal and navigate to the directory where the files you want to compress are located.
Type the following command to create a TAR archive of the files:
tar -cvf filename.tar file1 file2 file3 ...
Replace "filename.tar" with the name you want to give to the archive and replace "file1 file2 file3" with the names of the files you want to include in the archive.
Once the TAR archive is created, you can compress it using gzip by typing the following command:
gzip filename.tar
This will create a compressed TAR.GZ file with the name "filename.tar.gz".
To extract the contents of a TAR.GZ file, you can use the following command:
tar -xvf filename.tar.gz
This will extract the files from the archive and store them in the current directory.
This video is for beginners keep watching!
Please Subscribe and click the notification bell so you never miss a video
Thank You For Watching
#LinuxFullTutorial2020
#LinuxTipsandTricks2020 #LinuxServer #LinuxTeachingHouse