Results 1 to 9 of 9
I can not find the piece of paper that I wrote this command down on so I have to ask for it again, sorry!! ( my mind is shrinking every ...
- 02-04-2010 #1
What is the terminal command for tar.Bz2 files, please?
I can not find the piece of paper that I wrote this command down on so I have to ask for it again, sorry!! ( my mind is shrinking every day )
I am using ubuntu 8.04! Thanks!Linux registered user # 414321
You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
http://www.paynal.com
Everything Within The Universe Is Related; We Are All Cousins!!
- 02-04-2010 #2Linux Guru
- Join Date
- Mar 2003
- Location
- Wisconsin
- Posts
- 1,907
It should be
The option is:tar -xjvf file.bz2
-j or --bzip2Registered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
- 02-04-2010 #3
Thanks Jeremy!! I need to look for an uncomplicated book that contains terminal commands that I can keep right next to my desktop computer!! Thanks Again!!!
Linux registered user # 414321
You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
http://www.paynal.com
Everything Within The Universe Is Related; We Are All Cousins!!
- 02-04-2010 #4Linux Guru
- Join Date
- Mar 2003
- Location
- Wisconsin
- Posts
- 1,907
Linux in a Nutshell comes highly recommended.
Linux in a Nutshell, Fifth Edition - O'Reilly MediaRegistered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
- 02-05-2010 #5
Another handy thing is to cheat and utilize other people's hard work.
Put this is the file ~/.bashrc
Source that file and now when you can just typeCode:extract () { if [[ -f $1 ]] ; then case $1 in *.tar.bz2) bzip2 -v -d $1 ;; *.tar.gz) tar -xvzf $1 ;; *.rar) unrar e $1 ;; *.deb) ar -x $1 ;; *.bz2) bzip2 -d $1 ;; *.lzh) lha x $1 ;; *.gz) gunzip -d $1 ;; *.tar) tar -xvf $1 ;; *.tgz) gunzip -d $1 ;; *.tbz2) tar -jxvf $1 ;; *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *) echo "'$1' Error. Please go away" ;; esac else echo "'$1' is not a valid file" fi }
Or filename.tar.bz2 or tar.gz or whatever. (You do need all the correct programs installed, unrar, unzip, etc.)Code:extract filename.zip
- 02-05-2010 #6Linux registered user # 414321
You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
http://www.paynal.com
Everything Within The Universe Is Related; We Are All Cousins!!
- 02-05-2010 #7
~ is a shortcut for /home/user/
Just open with any text editor.
The changes don't take effect immediately, but you can source the configuration file in the current session, thereby utilizing the changesCode:gedit ~/.bashrc
Or of course restart the session.Code:source ~/.bashrc
- 02-05-2010 #8
Thank You Reed9!! I was born in Boston many moons ago. Everyone says it has changed dramatically after rent control ended in 1997 or 1998!
Linux registered user # 414321
You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
http://www.paynal.com
Everything Within The Universe Is Related; We Are All Cousins!!
- 02-05-2010 #9
No problem. I found it somewhere on the Arch forums initially and it seemed a handy idea.
You can change the name to whatever you like too. So the beginning part could be different, shortened if you want so say from this
to thisCode:extract () {
And then would you just type ex filename.tar.gzCode:ex () {
As for Boston, I was born and raised in Seattle. Been here for just over a year, so I couldn't comment on the changes.


Reply With Quote
