How To Configure Tar | Zip | Gzip | Bzip In Redhat Linux

In This Tutorial We Are Going To Learn How To Configure Tar,Zip,Gzip,Bzip Or How To Combile 2 Text File In 1 File 

Firstly login Weth Root In Linux

And Now We Have To Create The Text File 

#dd if=/dev/sda of=a.txt bs=1M count=10 {a.txt Is The File Name}
#dd if=/dev/sda of=b.txt bs=1M count=10 {b.txt Is The File Name}

Here IS The Commands Of TAR

#tar -cvf all.tar *.txt {After Writing This Command Then Press Enter And Then All                                                                   Text File Will  Convert In Tar File}
#rm -rf *.txt      {After Writing This Command Then Press Enter And Then This Command                                             Will Delete All Text file }
#tar -xvf all.tar {This Command Is For Remove Tar}

Now How To Combine 2Text File In 1Zip File 

#zip alltext.zip *.txt {This Will Combine 2 Text File In 1 Zip File} 
#rm -rf *.txt {This Command Will delete All Text File }
#unzip alltext.zip {This Command Is For Remove Zip}

Now How To Compress Or Decompress The Text File By Using Gzip 

#gzip a.txt { This Command Is Used For Compress The Text File }
#gzip b.txt { This Command Is Used For Compress The Text File }
{By Using This Command It Will Reduse The Size Of Text File If We Are Having The Text File Of 10MB It Will Reduce The File Size By 272 KB} 

Now How To Decompress This File 

#gunzip a.txt gz { { This Command Is Used For Decompress The  Compressed File }
#gunzip b.txt gz { { This Command Is Used For Decompress The  Compressed File }

Now How To Compress Or Decompress The Text File By Using Bzip

#bzip2 a.txt { This Command Is Used For Compress The Text File } 
#bzip2 b.txt { This Command Is Used For Compress The Text File }

Now How To Decompress This File 

#bunzip a.txt bz { { This Command Is Used For Decompress The  Compressed File }
#bunzip b.txt bz { { This Command Is Used For Decompress The  Compressed File }
{By Using This Command It Will Reduse The Size Of Text File If We Are Having The Text File Of 10MB It Will Reduce The File Size By 150 KB}
This Is All How We Configure Tar | Zip | Gzip | Bzip In Redhat Linux 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s