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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2010, 05:55 AM
|
#1
|
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238
Rep: 
|
What is ">" in console?
When ">" appears below recent command and you can type there - what is it? Where to read about it?
|
|
|
07-04-2010, 05:57 AM
|
#2
|
Member
Registered: Jun 2010
Distribution: Fedora
Posts: 289
Rep:
|
It's stored in a variable called PS2. It's the second prompt.
http://www.davidpashley.com/articles/bash-prompts.html
Quote:
PS2 is the continuation prompt
|
Last edited by pr_deltoid; 07-04-2010 at 05:59 AM.
|
|
1 members found this post helpful.
|
07-04-2010, 07:23 PM
|
#3
|
Member
Registered: Jul 2004
Location: Chennai, India
Posts: 952
|
Means that as far as the shell is concerned, you didn't complete the previous command. Usually happens in development of awk, sed and other scripts when you leave out a bracket (parentneses). To come out, type a ";" (semi-colon) and review what you typed earlier.
OK
|
|
|
08-18-2010, 10:12 AM
|
#4
|
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238
Original Poster
Rep: 
|
Quote:
To come out, type a ";" (semi-colon) and review what you typed earlier.
|
Try:
You won't be able to exit with ";".
|
|
|
08-18-2010, 10:18 AM
|
#5
|
Member
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638
Rep: 
|
it is PS2 prompt. When you breake command using \ it will display ">" prompt
and when you complete command whole command will execute.
i.e
Code:
echo "Hello friends \
> how are you?"
hello friends how are you?
|
|
1 members found this post helpful.
|
08-19-2010, 04:39 AM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441
|
As mentioned, typically its the the 2ndary prompt eg if you have unmatched quotes (post #4) it's saying you need to close the quotes before it will action the cmd.
If you are good, you can write+run a shell script on the fly without creating a shell file eg
Code:
[name@host:/path]$ for file in `*.dat`
>do
>grep pattern $file
>done
[name@host:/path]$
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 08:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|