LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-31-2009, 03:49 PM   #1
Adso
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Exclamation How to uncompres a file .tar.gz from the bash?


The question said everything... I was looking for, but I did not find nothing, any command.
If you can tell me the command or where can I find it (any tutorial or something like this).

Thank you!!!
 
Old 01-31-2009, 03:51 PM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
tar xzf <filename> or tar xzvf <filename> for verbose mode.
  • x - etract
  • z - gzip format (j for bzip)
  • v - verbose output
  • f - read file specified as an argument, instead of waiting for it on stdin

Last edited by Maligree; 01-31-2009 at 03:55 PM.
 
Old 01-31-2009, 03:54 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,547

Rep: Reputation: 180Reputation: 180
Use the tar command. The documentation is:

man tar

As an example: Suppose you have a file called new.source.tar.gz in a directory called /tmp/source then use these commands to unpack the tarball:

cd /tmp/source
tar -xzf new.source.tar.gz

--------------------
Steve Stites
 
Old 01-31-2009, 04:14 PM   #4
Adso
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you!
 
  


Reply

Tags
bash, command, tutorial


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 10 02-23-2008 05:40 AM
need some help with muli-volume tar (ubuntu, bash, gnu tar) MattCarp Linux - General 4 06-05-2006 08:15 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
Set name of tar file as date using bash otisthegbs Linux - Software 5 12-18-2003 03:34 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration