Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-31-2009, 03:49 PM   #1
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
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
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,877

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
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
LQ Newbie
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you!


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 14 10-25-2016 02:48 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 PM.

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