LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-26-2005, 07:16 AM   #1
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Rep: Reputation: 15
strange problem while compressing a directory


Hello everybody,
i am trying to compress a directory "2005-07-25_21-19" but getting strange error...
shell# tar -cj 2005-07-25_21-19/ -f 2005-07-25_21-19.tar.bz2

upon executing this command i get strange output on the terminal...


OUTPUT:

zmá3âJuo7¸ßRi'Rò*zÊc|¶ßÌ%SôÐÃ(
/ìgø=t·ü¯V¼2}%»Z
'Óäé_<XéVVôOùk3YÔE:eüã;9ß6ÛÓñòH6í
5þ¥Â4j{Hë{Ô3-xUÏ-¤m53ûbÙj½ Ò
ïÀ©ÑgÒ4¸¨TeêFÞÒ69ÿ$ÃYf
^»°³Û9'moïªi·C¡i"J
Ö7®éx.m'4h]ÿª LìÄÆÆÖZt7éØëÚäÍïÎCÇöÝ_u#§ ¿Ô¼õÁýf >sIZíè÷¿A_Æ+rIeþè
ñÂ(z9QmVÆ4>zÊ,+®ÇÊ»
)$Æ>Ø¿6zUÖ!úèüóÏHU¿ZQôû03¥
¯åqÉÝåÓ¯L-û8¼aq~ÁBFgE]ÛGt¹·F£êîÞáÿò_dQj=
"uÕ$`áÅÛUaFÇahü<%hrer*)BH¨[@VºRóQMOàÈ6ü«*6g»Y#·*LnᵯýD¤¿¯ak="à¬!_ÆÞÓ
(+0?¾íÄrãt(÷-\

why am i getting this????

Plz help me...
Regards
KartheeK
 
Old 07-26-2005, 07:20 AM   #2
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
Thats what you get is this compressed directory, not error. Try 'tar -cjv "directory" > "directory".taz.bz2' This redirect OUTPUT to .tar.bz2 file
 
Old 07-26-2005, 07:28 AM   #3
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
same error still....
 
Old 07-31-2005, 02:19 PM   #4
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
maybe :
echo `tar -cjv "directory"` > "directory".taz.bz2
 
Old 07-31-2005, 03:58 PM   #5
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Quote:
Originally posted by mmmm
Thats what you get is this compressed directory, not error. Try 'tar -cjv "directory" > "directory".taz.bz2' This redirect OUTPUT to .tar.bz2 file
The -f flag he's using should be doing the redirection.

Try taking the '/' off the first argument. If that makes no difference, retry your original command and add >stdout 2>stderr and see what ends up in those two files.

Last edited by eddiebaby1023; 07-31-2005 at 04:00 PM.
 
Old 08-04-2005, 12:39 PM   #6
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
Maybe try without bz2 (no -j flag) ?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressing directory with bzip2 Haiyadragon Linux - Newbie 4 12-19-2016 03:51 PM
strange directory behavior exodist Linux - Software 1 11-20-2005 04:37 PM
help with compressing a directory for backup Lleb_KCir Linux - Newbie 8 10-28-2005 02:52 AM
Compressing/Zipping A Directory Wha?Where? Linux - Newbie 4 07-07-2005 09:20 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM

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

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