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.

Do I have to be connected to a server to use the command line? I've been using MAMP to learn PHP and mysql. But I want to go outside of MAMP. Some of the tutorials I'm in send me to the terminal's command line but when I type in the code there I don't get the password prompt that's expected. I have a mac book pro 10.6.8. Any suggestions?

share|improve this question
1  
What do you mean by "The code"? can you give an example? –  Simon Sheehan Jan 14 '12 at 23:59
    
What password prompt? To log into your system? –  Daniel Beck Jan 15 '12 at 0:04
    
I really wasn't sure what I was asking in this post. I had been trying to use the terminal in online mysql tutorial and when I typed in the command given I didn't get the results shown in the tut. I began to think I needed to be connected to a server to use the command line. Now because of your comments I getting some clarity on this subject. Thanks you all. –  swydell Jan 15 '12 at 3:17
    
When you open a command prompt on your mac, you are already logged in. Most dangerous commands will require you to enter your admin password again before running them. If you post the tutorial you're having trouble with as a question, I'm sure someone can explain what's wrong. –  Abhi Beckert Jan 15 '12 at 18:11
    
Consider, you know, posting a link to the tutorial so we can try to reproduce the issue. –  Daniel Beck Jan 15 '12 at 21:05

3 Answers 3

up vote 2 down vote accepted

In Finder, go into Utilities and run Terminal. You've already logged in, so you won't be prompted for a password.

share|improve this answer
1  
This can also be done through spotlight –  Simon Sheehan Jan 15 '12 at 0:00

You dont have to be connected to a server to use the "command line" on your Mac, but you do have to be connected to a server to run commands on the server.

Applications -> Utilities -> Terminal

That will open up the command line for your Mac, where you can log in to SSH on the server you want to run commands on.

share|improve this answer

The reason you don't get a password when you launch the Terminal app is that you are already logged in. On OS X, Terminal.app will set you up a login shell (i.e. it executes .bash_profile) but uses already authenticated user account you logged in as when you started the machine. If you want to change to another user you can use su otherusername just as on any other Unix-like system.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.