Download your favorite Linux distribution at LQ ISO.
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 08-01-2004, 12:13 PM   #1
LQ Newbie
Registered: Apr 2004
Location: US, MS(unfortunately)
Distribution: Fedora
Posts: 13

Rep: Reputation: 0
how do you unzip something

I don't want to do an auto unzip, I want to do the console commands to unzip something and I was wondering if someone would tell me what they are?
Old 08-01-2004, 12:17 PM   #2
Registered: Oct 2003
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
unzip what?

.tar.gz ?
tar xfzs thisfile.tar.gz or .tar.bz2
tar xfjs thisfile.tar.bz2

unzip -d todir/

Of course, there are several more ways to do this so I suggest you read the man pages.
man tar
man gzip
man bzip2
man unzip
Old 08-01-2004, 12:19 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If the file has a zip extension, use unzip <filename>. It the file has extension gz or tgz, use gzip -d or gunzip <filename>. The file will probably be a tar archive, so you finish unpacking the file with the tar command, as in, tar -xf <filename>. Note: the filename must follow the -f option, which means tar -fx <filename> won't work.


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
Not able to unzip arimus25 Linux - Software 6 11-14-2011 05:46 AM
unzip Jeebizz Slackware 5 08-28-2005 05:07 AM
Unzip PhuckFonix Linux - Newbie 1 05-30-2004 09:10 PM
unzip thanko Linux - Software 13 05-02-2003 06:16 AM
Unzip? lintadsl Linux - General 6 12-01-2002 05:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration