LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-30-2005, 01:30 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
how to make a tar.bz2 file


hi i am using mandrake.
i need to know the command to compress the file.
i have to compress tar.bz2 format ..

can i have the idea?
 
Old 03-30-2005, 01:35 AM   #2
gerardt
Member
 
Registered: Feb 2005
Location: South Africa
Distribution: SuSE
Posts: 60

Rep: Reputation: 15
gui tool - ark
command line - tar (use man or info to learn more about the command)
hint - the compression option you are looking for is j)
 
Old 03-30-2005, 01:37 AM   #3
PrOeliuM
LQ Newbie
 
Registered: Nov 2004
Posts: 11

Rep: Reputation: 0
You should use the tar command at the command line like:
tar -cvjf <filename.tar.bz2> <files you want to be in the archive>

-c is Create
v is Verbose
j is bz2 file
f is filename

For instance if I have files called test1 and test2, and want the tar file to be called test.tar.bz2 I would do:

tar -cvjf test.tar.bz2 test1 test2

At least, I'm fairly sure that's the command. Type 'man tar' at the command line to see detailed info about how to use the tar utility. Good luck.
 
Old 03-30-2005, 02:05 AM   #4
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
the command is correct, however using -v can slow down large tar operations (both archive and extraction)
 
Old 03-30-2005, 02:05 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
also i have to know which format will be more suitable for backup.

i mean which format will produce less capacity.

either .tar.bz or .tar.bz2 or .zip
 
Old 03-30-2005, 02:42 AM   #6
gerardt
Member
 
Registered: Feb 2005
Location: South Africa
Distribution: SuSE
Posts: 60

Rep: Reputation: 15
bz2 Has the best compression

Last edited by gerardt; 03-30-2005 at 02:45 AM.
 
  


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
Opening of a tar.bz2 file Gins Linux - General 8 04-08-2005 04:42 PM
Unpacking a .tar.bz2 file njschroe Linux - Software 1 01-31-2005 04:25 PM
how to compile a file of .tar.bz2 zameer_india Linux - Software 7 12-21-2004 01:15 AM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 01:34 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM


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