LinuxQuestions.org
Register a domain and help support LQ
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-23-2006, 12:20 AM   #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-23-2006, 12:39 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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
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


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


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