LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2012, 05:36 PM   #1
Menomic
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: Disabled
How to open a tar.gz file


Im trying to open a Tar.gz file and I keep putting in the command tar -zxvf filename.tar.gz but it keeps saying it cant find the file. I am replacing the filename with the actually file name but does it make a difference if its on my desktop?
 
Old 08-10-2012, 05:50 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
You need to give it the location of the file. You can only run "tar -zxvf file.tar.gz" if file.tar.gz is in your current directory. If the file is in directory A, and your terminal is in directory B, it won't work because the terminal will be looking for the file in the directory B.

short answer: if the file is on the desktop, then cd to the desktop and run the command there.
 
1 members found this post helpful.
Old 08-10-2012, 05:51 PM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,156

Rep: Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159
Welcome to the forums!

Yes, if the file is in your Desktop folder then you must first change directory (cd) into that folder:

Code:
cd Desktop
Alternately you can use the full path:

Code:
tar -zxvf /home/mnemonic/Desktop/filename.tar.gz
Also if your Linux has a GUI desktop environment and a GUI archive manager (such as file-roller for example) you can typically just double-click on it.
 
1 members found this post helpful.
Old 08-10-2012, 06:23 PM   #4
Menomic
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Right now im using Backtrack5.
~update~
I got it open by just moving the .tar.gz but now i got to figure out how to unmount the wireless card module/driver and put it in

Last edited by Menomic; 08-10-2012 at 06:36 PM. Reason: update
 
Old 08-10-2012, 06:44 PM   #5
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,156

Rep: Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159
Glad you got the archive open!

You might want to start a new thread for your wireless problem, and be sure to include your wireless card manufacturer and chipset so you someone can help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
How open the file .tar.gz Haroon Linux - General 1 10-07-2004 01:36 PM
How to open a *.tar.gz file ? juanb Linux - General 2 04-06-2003 07:28 AM


All times are GMT -5. The time now is 10:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration