LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-18-2017, 05:12 PM   #1
DoctorCarlo1955
LQ Newbie
 
Registered: Aug 2017
Location: Earth
Distribution: Manjaro
Posts: 3

Rep: Reputation: Disabled
Newbie wants to decompress/extract a tar.bz2 file - Manjaro


I have actually already done it once correctly; the new file showed up right next to the tar.bz2 file. I clicked on the extracted icon and it ran perfectly.

The next day after I had shut off my system, the extracted icon was gone and I have yet to reproduce the command that, in one step, extracted the tar.bz2 file and placed it in the same folder as the tar.bz2 file.

I've reviewed the help pages that I was using to come up with the working command but have not been able to duplicate that one magic line.

I left-click on the opened folder and then type the command line which shows up at the bottom of the window. I then press "Enter" and that's when it all happened instantly.

I do know how to open a terminal window but did not use it in this case.

Why the extracted icon disappeared, I have no clue.
 
Old 08-19-2017, 09:54 AM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
tar -xvf filename.tar.bz2
 
Old 08-19-2017, 02:26 PM   #3
DoctorCarlo1955
LQ Newbie
 
Registered: Aug 2017
Location: Earth
Distribution: Manjaro
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your answer. However, it did not work for me. I left-clicked in the folder where the file was and entered the line as you instructed but I got no response from it.

This is very bizarre and frustrating because I did experience before entering a line command that was very similar to the one that you gave me, but I cannot remember it nor reconstruct it. It may have begun with "bunzip2" but I could be wrong.

I have tried also double-clicking on the file but it then gave me a folder and an .exe file; neither of which did anything: not opening or executing.

Any ideas as to why this should be giving me such a hard time? It should be simple but I don't know very much at all about Linux.
 
Old 08-19-2017, 08:18 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,345
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Quote:
I left-clicked in the folder where the file was and entered the line as you instructed but I got no response from it.
Try opening a terminal, then navigating to the directory where the file resides, and entering the command from the command line:

Code:
tar -xvf [filename]
That particular set of arguments (xvf) of the command tells tar to inspect the file and choose the appropriate decompression command. See man tar for more.
 
Old 08-20-2017, 07:38 PM   #5
DoctorCarlo1955
LQ Newbie
 
Registered: Aug 2017
Location: Earth
Distribution: Manjaro
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

The solution was staring me in the face all the while. My Google searches brought up using WINzip or WINrar in Windows. So I booted my system back into Windows, installed WINrar, and had the file in hand in nothing flat. Then I booted back into Manjaro Linux and ran the program immediately. So, for once, Windows was good for something. Now I just need to get back to the Monero GUI wallet forums and find out why the program still doesn't quite work as it should; they are the ones who seemed to indicate that my problem was running the program in Windows.
 
Old 08-21-2017, 08:03 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I thought tar jxvf was for bz2.
 
Old 08-21-2017, 09:51 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
it is xjvpf.

$ tar -xjvpf file.tar.bz2

You might also need to install the bzip2 package depending on what distro and how you installed it. With xJvpf for .xz files. And xzvpf for .tar.gz. Plus non-tar routes via gunzip, bunzip, 7z and such.

$ man tar

Where the v and p are optional flags. verbose and preserve permissions or some such. The p is probably more useful in tar creation, but I just always have it there, old habits and such.
 
Old 08-23-2017, 01:19 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by DoctorCarlo1955 View Post
The solution was staring me in the face all the while. My Google searches brought up using WINzip or WINrar in Windows. So I booted my system back into Windows, installed WINrar, and had the file in hand in nothing flat. Then I booted back into Manjaro Linux and ran the program immediately. So, for once, Windows was good for something.
you only had to reboot twice! i agree, that is about the only thing windows is good for.
opening a terminal and typing out POSIX commands would have been a lot more hassle.
no, windows is definitely much better in preserving UNIX tradition, than Linux.
 
  


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
How to extract tar.bz2 file? yuri16 Linux - Newbie 19 01-28-2009 12:49 AM
decompress tar.bz2 files dhamle Linux - Software 2 09-11-2007 10:24 AM
extract 1 file out of a .tar.bz2 oldsko0l Linux - Software 7 10-15-2006 06:14 PM
Can't decompress tar.bz2 (kde theme file) dauphinfay Linux - Software 5 10-24-2005 02:23 PM

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

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