Answered by the Webhosting Experts

Hivelocity
Backup Services

Is Your Data Safe?
If your only copy of critical information lives on your production server, it’s not as safe as you think. Don't leave all your eggs in one basket! Keep your backups on one of Hivelocity's premium backup solutions.

With 2 of the most popular backup solutions available, Hivelocity has the right solution for you. Learn more about our Rapid restore services from R1 soft or our cloud backup and recovery services from Acronis.

Rest easy knowing your data is secure.

Tags
...
...
160x600_hivelocity_dec20

How to use tar command on linux server?

“Untar” a file
If you are working with example.tar  file, you can extract the files from it using:

 

tar xvf example.tar

 

If you are working with  gzipped(example.tar.gz), you can extract the files from it using:

 

tar xvfz example.tar.gz

 

If  you have example.tgz, you can extract the files from it using:

 

tar xzvf example.tgz

If the tarball has been compressed with bzip2(example.tar.bz2), then you will need to

have bzip2 installed. (If all is well and bzip2 is installed, you can extract the files from it

using:
tar yxf example.tar.bz2

Sometimes you only want to extract certain directories from the tarball.

An example of doing so would be:

tar xvzf example.tar.gz */DIRECTORY_YOU_WANT_REPLACES_THIS_TEXT/*

 

If you would like to see what is inside a tarball, you can use the command:

tar tvf example.tar

 

If you would like to see what is inside a gzip’d tarball, you can use the command:

tar tzf example.tar.gz

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Watch our servers in their natural habitat

Click here to see more live streams or take a tour of our facilities.

Hivelocity
Backup Services

Is Your Data Safe?
If your only copy of critical information lives on your production server, it’s not as safe as you think. Don't leave all your eggs in one basket! Keep your backups on one of Hivelocity's premium backup solutions.

With 2 of the most popular backup solutions available, Hivelocity has the right solution for you. Learn more about our Rapid restore services from R1 soft or our cloud backup and recovery services from Acronis.

Rest easy knowing your data is secure.