-bash: 1: command not found - Immediately on loading Terminal [duplicate]
Solution 1:
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.
Solution 2:
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.
Solution 3:
Yes, review the .profile ( /Users/yourusername/.profile ), it sure has something like that .:
Just remove it from there and it will stop showing up.