Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Ross-MacBook-Pro:....$

inadvertently it has now been changed to:

unknown68a86d472174:....$

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 stackoverflow.com Apr 3 '12 at 17:30

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

add comment

1 Answer

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: http://tldp.org/LDP/Bash-Beginners-Guide/html/

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
add comment

Your Answer

 
discard

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