LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-22-2006, 11:20 PM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question compressing a file


Greetings:

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-22-2006, 11:39 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 03:20 AM   #3
Ha1f
Member
 
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/
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

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