Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am very inexperienced with the console, I have been exploring rails and somehow my command root in the console used to be:


inadvertently it has now been changed to:


What is this and how do i revert?

Can you suggest any guides to help me learn the basic anatomy of the command line?

share|improve this question

migrated from Apr 3 '12 at 17:30

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

The bash is the same as in Linux. You will find lots of materials to this topic in the net, e.g., here:

The matter with your prompt is probably because the standard configuration changes the prompt if you have a net connection. But you can set your PS1variable as you wish.

share|improve this answer
I see, so is there a default PS1 setting that I can revert to? – RMcNairn Apr 3 '12 at 12:12
The default uses the hostname. I guess, you 've connected your Mac to a network where it got a new hostname via DHCP. Thus, setting the name (via Sytem Preferences->Sharing) should do what you want. – Matthias Apr 3 '12 at 12:21
Many thanks... it seems that my problem was as a result of a dodgy routing change that I made on the way here, and it happened to coincide with a username change throwing me off! But thanks for the help, I really need to get my head around the terminal. – RMcNairn Apr 3 '12 at 12:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.