LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2005, 02:31 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Knowing the extracted size of compressed tarball without extracting


hi,

I have an a compressed tar ball called data.tar.bz2. Can I know the space(inMB) that will be taken after I extract the compressed tar ball without extracting it in the first place?

In short, I don;t want to actually extract the tar ball but somehow know how much space will it take after extraction?

Thanks
 
Old 11-04-2005, 03:31 PM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
bzip2 -dc $tarbz2 | wc -c
or
bunzip2 -c $tarbz2 | wc -c

same with gzip / gunzip
 
Old 11-05-2005, 07:10 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Thanks dude. I really appreciate that.
 
  


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
extracting compressed torrent downloads that are password protected aw76 Linux - General 2 11-26-2005 04:21 AM
firefox 1.05 binaries won't work when extracted MidniteHex Linux - Newbie 8 07-19-2005 01:50 AM
Best for installation - extracted or unextracted ISO? Andrew Holmes Linux - Newbie 4 11-26-2004 10:58 AM
kdelib no headerfiles extracted?!? JZL240I-U Linux - Software 1 09-20-2004 03:08 AM
Extracting tarball to stdout syberdave Linux - Software 2 01-30-2004 07:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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