1832330 Members
3191 Online
110041 Solutions
New Discussion

shell prompt ">"

 
SOLVED
Go to solution
Michael I. Odesanya
Occasional Contributor

shell prompt ">"

1. If you receive a ">" prompt on the command line, what does that mean?

2. How do I create a subdirectory called "kita" under /tmp and set the directory so that any file created in that directory will be automatically be owned by the "dba" group regardless of who creates the file (even accounts not in the dba group).


5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: shell prompt ">"

Incomplete command.

Ctrl-Break to get out.

Try this:

echo "steve


You get the secondary shell, waiting for input.

Type "


You see my name.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jason Deckard
Occasional Advisor

Re: shell prompt ">"

1. The shell expects more input for the command. This can happen when you put a backtick (`) in your command-line that you didn't close out with a second backtick. Also, using a backslash (\) at the end of a command-line has this effect.
[Insert humorous and/or inspirational quote here]
James R. Ferguson
Acclaimed Contributor

Re: shell prompt ">"

Hi:

Set the 'sgid' bit on the directory to cause files created under it to automatically inherit the directory's group. For instanace:

# mkdir /tmp/kita
# chmod 2775 /tmp/kita
# chown root:dba /tmp/kita
# touch /tmp/kita/thing

Regards!

...JRF...
Kent Ostby
Honored Contributor

Re: shell prompt ">"

As stated above, this is usually an unmatched single- or double-quote.

I usually cntl-c out of it .

If you need to use the quote character, in certain cases, you need to proceed it with a \ character.

Best regards,

kent m. ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Robert Gamble
Respected Contributor

Re: shell prompt ">"

As pointed out above this is a second prompt waiting for more input.

I modify my .profile and set a specific prompt for PS2 and PS3, so I know when I made a mistake.

try adding this to your .kshrc or .profile

PS2="waiting_for_more_input>"
PS3="you_really_messed_up_this_time>"

Hope this helps!