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 05-08-2012, 09:09 AM   #1
Deedee393
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
Question How to convert a .bz2 file to a human-readable form in Windows 7 Professional


Nothing to do with tar please, as I don't know how to convert my .bz2 file to a .tar.bz2 file.
I tried WINRAR, Peazip, 7zip, WinSCP etc. but when I try to open the file, it opens up as symbols, numbers and random letters. Any help would be appreciated.
 
Old 05-08-2012, 09:11 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
Code:
bunzip2 FILENAME.bz2
will extract the file.
 
1 members found this post helpful.
Old 05-08-2012, 09:15 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
it opens as symbols?? What does that mean? In Notepad?? quite possible the file is just wrongly named, and windows is just stupid when it comes to recognizing what a file actually IS.

tar is used to colelct multple files into a single archive

bzip2 / gzip is used to compress a file, hence you bzip2 a single tar file.

So maybe you're just loading the tar file as if it were a file to open? 7zup certainly can handle the file if it is what it says it is.
 
Old 05-08-2012, 07:28 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,237

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
You can double check on the Linux box by using the 'file' cmd eg
Code:
file myfile.bz2
That should be able to tell you what you've really got there.
http://linux.die.net/man/1/file
 
Old 05-08-2012, 10:48 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
the windows version of 7-zip will open a bz2
some of the folder structure might get lost


file.bz2 might turn into
file.tar
then 7-zip can open that

/file.tar/file
 
Old 05-09-2012, 02:14 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,976

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
My experience is the same as John's in that 7-zip works just fine. Once open in the 7-zip manager if presented with a single tar file simply double click again and it will take you into the
file and show the contents.
 
Old 05-11-2012, 07:57 AM   #7
Deedee393
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,
I used the bunzip2 command to extract the file, then re-downloaded WinSCP, and that seemed to do the trick. Thank you for your help!
 
  


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
[SOLVED] Convert field from epoch to human readable sebelk Programming 6 01-08-2012 02:13 AM
gawk/awk/tcsh - how to convert large number to human readable (Mb,Gb, etc)? BrianK Programming 23 10-30-2010 04:20 AM
howto convert .flw (koffice/kivio file) into windows readable type of file? rahmmandel Linux - Desktop 7 01-30-2007 04:12 PM
Webalizer - howto convert the trafic into human readable? sys7em Linux - Server 3 09-25-2006 04:48 AM
I want Linux source code for FAT file system in user readable form not in binary form ramya272 Linux - Newbie 5 02-05-2004 07:54 PM

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

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