LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-02-2002, 12:00 PM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Rep: Reputation: 30
Talking Zip and Unzip


How to use gunzip to 'compress' a directory?
 
Old 08-02-2002, 01:22 PM   #2
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Take off gunzip from your path &
alias gunzip="tar cvzf" and do what you want!
--Sarin
 
Old 08-02-2002, 02:32 PM   #3
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
gzip only works on single files, you first need to create an uncompressed archive of the directory.

Code:
tar cvf file.tar directory
gzip file.tar
You can tell tar to pipe the output in to gzip with

Code:
tar cvzf file.tar.gz directory
 
Old 08-02-2002, 05:14 PM   #4
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Thumbs up

Thanks, That exactly what I wanted.
 
Old 08-02-2002, 07:12 PM   #5
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Sorry, I thought you were not serious about it.
--Sarin
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unzip all .zip files in a directory tes15 Linux - Newbie 14 08-29-2014 11:46 AM
zip/unzip - file too big Joe Soap Linux - Newbie 13 03-14-2014 11:42 AM
zip & unzip bong.mau Linux - Software 13 09-09-2005 07:18 PM
unzip .zip >4gb dkw Linux - General 1 07-07-2005 07:27 PM
how do i unzip a .zip? lax2sman Linux - General 2 02-11-2002 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:02 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
Open Source Consulting | Domain Registration