Latest LQ Deal: Latest LQ Deals
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 12-23-2006, 12:20 AM   #1
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question compressing a file


Im using Suse

How to compress a file turn into a .tar.gz , .bz2 or any linux compression method.... What is the command?

Old 12-23-2006, 12:39 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
gzip <filename.tar> will compress the .tar file, and give you a .tar.gz.

bzip2 <filename.tar> will give you a tar.bz2 file.
Old 12-23-2006, 04:20 AM   #3
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
or you could just throw the z or j options during the initial tar-ing:

i.e. tar czvf stuff.tar.gz stuff_to_targz/


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
Compressing file using a binary file bernie82 Programming 3 06-01-2005 03:11 AM
compressing iso's jamalexa Linux - Newbie 3 10-27-2004 10:41 PM
compressing a file sanjith11 Linux - General 2 07-08-2004 04:42 AM
compressing files master Linux - Newbie 4 03-18-2004 12:48 PM
Compressing a file dynamically xanthium Programming 5 03-22-2002 06:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 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