You're in Console.
First, at the "#" prompt, type
exit, then press enter. It might exit Console and load Aqua.
If that doesn't work, try holding Command-Option-P-R at power up. This resets the Parameter RAM.
Also, look at
this article for recovering. Make sure you note which version of OS (up to 10.4, or above).