LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2014, 06:24 AM   #1
sad
LQ Newbie
 
Registered: Jul 2014
Posts: 9

Rep: Reputation: Disabled
Need help opening a .tar.gz file


Hi ,
i am 2 days trying to open a tar.gz file. No succes. Please help me !
My distribition is Xubuntu 14.04. Thanks.
 
Old 08-22-2014, 11:27 AM   #2
fixer1234
Member
 
Registered: Aug 2014
Location: Virginia, USA
Posts: 51

Rep: Reputation: Disabled
In general, you will get more effective help if you post your question where the people knowledgable would be looking for it and use a title that describes the problem. Posting an unrelated question in the middle of a different thread will get pretty random results and sidetracks the original thread. Maybe a moderator can help by turning this into a new thread or your could re-post as a new thread.

But to your question, a tar file is a form of archiving (multiple files aggregated into a single file). The gz specifies a choice of compression method (GZip). If you right-click on the file, there should be a default "open" option as the first choice, which will open the file using the "standard" program that has been designated for that file type. That is the same result as double-clicking on the file (double-clicking is just a fast method of opening the context menu and selecting the first choice). There is another right-click option, "open with...", that lets you select which program to use. This all applies to virtually any kind of file.

If you have ever tried to open a tar file with a program that does not know how to open these files, the system may have remembered that program choice and will try to use it any time you want to open a tar file. The solution is to either right-click and select a good program or go to the system setup and look for something named similar to "default applications". There, find the .tar or .tar.gz extension and tell it what program to use. I'm not sure which archive utility is bundled with Xubuntu. If you don't know, there is usually a setting in the applications menu to display the "generic" program name, which will be something like "archive manager", rather than the official program name which, in Linux, often give no clue as to what the program actually does.

If you can't identify an archive manager, just install another one using the software manager. Do a search on "archive" or "archive manager" (in the software manager), and choose one of the available programs. Ark is a good one and commonly bundled with various distros.

If none of that is the problem, there are two likely issues. The "tarball" (what a tar archive is called), could be incomplete, damaged, or corrupted. Try downloading a fresh copy, from a different source if possible. The other possibility is that the file you are trying to open has been assigned "root" permissions, meaning it is treated like a "system" file and you have to have root privileges to open it. This is typically the case when the file is system-related, like a driver or software, that is expected to be handled or installed by a program, untouched by human hands. It is also common in cases where manually messing with the contents could corrupt it. So make sure you need to open it before you do. If you are going to make any changes to it, copy the file and work with the copy.

If the problem is root permission, that is pretty basic to Linux (the Linux environment tends to assume that if you are using Linux, you either know what you are doing or are experimenting after having taken appropriate safeguards). If you don't yet know how to give yourself root privileges, it is probably a sign that you could easily get into a serious problem that you don't know how to deal with. If you are going to use Linux, this is something fundamental that you will need to learn, but take precautions like having a backup of your system and working with a copy of the file if you actually do need to manually open it.
 
1 members found this post helpful.
Old 08-22-2014, 11:38 AM   #3
sad
LQ Newbie
 
Registered: Jul 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you , fixer1234 !
 
Old 08-22-2014, 12:10 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,657

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by sad View Post
Hi ,
i am 2 days trying to open a tar.gz file. No succes. Please help me !
My distribition is Xubuntu 14.04. Thanks.
For TWO DAYS??? Did you try putting "how to open a .tar.gz file in Linux" into Google? First hit:
http://www.cyberciti.biz/faq/howto-o...in-linux-unix/

The file type you have can also be called a .tgz file. That is, a tar file that's also been gzipped. You can either use a two-step process, by using gunzip to turn it into a tar file, then using tar to extract it, or just using tar by itself in one-step. Read the man pages on both the tar, gzip, and gunzip commands.
Code:
tar -xvfz <filename>.tar.gz
 
1 members found this post helpful.
Old 08-22-2014, 02:26 PM   #5
sad
LQ Newbie
 
Registered: Jul 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks I'm going to try it.
 
Old 08-22-2014, 02:32 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you have a gui desktop install
just double click it !!!
the SAME way as you would on a windows or apple OS
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening a .tar.gz file with a custom shell script as default program InvonativePercushion Linux - Software 4 11-12-2013 01:52 PM
Error opening a tar.gz file extension in Fedora 7 ravi_chobey Linux - Software 4 11-27-2007 06:21 PM
Opening of a tar.bz2 file Gins Linux - General 8 04-08-2005 03:42 PM
Opening a .tar file njschroe Linux - Software 1 02-02-2005 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration