LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-31-2005, 08:04 AM   #1
simple
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Ubuntu 5.04
Posts: 89

Rep: Reputation: 15
tar goes to >


when i try to untar a .bz2 the prompt turns into >.. not sure why, can anybody explain that?
Code:
simple@elemental!$: tar -xjf 19506-pinux's-tux-cursors-theme-0.3-cur.tar.bz2
>
i can type anything at the > and nothing happens. just goes to a new line started with >
 
Old 07-31-2005, 08:17 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
you need a backslash infront of the quote...
like this:
tar -xjf 19506-pinux\'s-tux-cursors-theme-0.3-cur.tar.bz2
if you type
tar -xjf 19506
do not press enter just yet...
but hit tab 1, or 2 times it will automatically add the rest of the filename
 
Old 07-31-2005, 08:21 AM   #3
simple
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Ubuntu 5.04
Posts: 89

Original Poster
Rep: Reputation: 15
ah lol.. thanks. what's the ' doing?
 
Old 07-31-2005, 08:49 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
you start a string as a single cml parameter where spaces and other stuff is allowed tar (and any other program would to) came up with the >
waiting for you to close the string with another '
 
Old 07-31-2005, 05:18 PM   #5
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
The '>' is from your PS2 variable, which is the shell's way to show that you're continuing the command on another line. This usually happens when you start a quoted string, and haven't closed it before you hit enter. Try typing
[code[
echo "one
two
three"
[/code]
and see the prompt change. PS1 is the one you usually see, and PS3 and PS4 are also defined. man bash for more details than you want to see.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 08:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration