Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

This question already has an answer here:

every time I start my terminal, it always says "-bash: .: command not found" twice. Does anyone know how I can get rid of that?

share|improve this question

marked as duplicate by bmike Oct 1 '15 at 14:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

It sounds like you have an errant command in a file like .bashrc or .profile. Try opening those files and looking for a command that doesn't belong. If something look suspect you might want to copy and paste it into Terminal to see if it runs correctly.

You might also check your prompt if you've customized it to see if you introduced an error there.

share|improve this answer

I would suggest you look into your ~/.bashrc or ~/.bash_profile files with a text editor. You probably mistipped something you have a . or some other character that is being executed at startup.

share|improve this answer

Yes, review the .profile ( /Users/yourusername/.profile ), it sure has something like that .:

Just remove it from there and it will stop showing up.

share|improve this answer

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