1833059 Members
3059 Online
110049 Solutions
New Discussion

> prompt

 
hboo
Frequent Advisor

> prompt

Hello all,

I want to know what i have to do when logon in a standard hpux installation server and i'm greeted with the prompt >

Thank's

hj
7 REPLIES 7
Redhat
Trusted Contributor

Re: > prompt

press Cntl+d to comeout to the default prormt.

check echo $PS1 for the primary prompt
spex
Honored Contributor

Re: > prompt

Hello,

Check the $PS1 setting in ~/.profile.

PCS
Sandman!
Honored Contributor

Re: > prompt

The prompt variable is PS1 and can be set either on a per user basis in the $HOME/.profile or globally in /etc/profile. See sh-posix(1) for details.
Geoff Wild
Honored Contributor

Re: > prompt

What do you have to do?
Well, that depends - why did you logon in the first place? :)

You have been greeted with the prompt - and now the system is waiting for you to enter a command.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dennis Handly
Acclaimed Contributor

Re: > prompt

Did you log into a shell or are you in the GSP/MP?
Bill Hassell
Honored Contributor

Re: > prompt

Are you asking:

1. How do I create a prompt string that uses >

or

2. I have a > on my screen, what do I do?

For question number 1, you can assign the variable PS1 the string you'd like to use, something like this:

PS1="> "

For question number 2, this means that someone has made a mistake in /etc/profile, or perhaps your local .profile script. The mistake is likely a missing " or ' mark in one of the statements. It is called the secondary prompt and is provided by the shell indicating that something more is required. In this context, it is a mistake.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: > prompt

Ah from what Manojit and Bill says about "secondary prompt", you could have started a command and have a mismatched single or double quote. Just use control C to terminate that bad command. A real shell has:
$ echo '
>