Terminal problems

MintyFloss

Registered
Hey all, lookin for some help. I'm on a 10.6.3 MBP.

Every time I open up terminal, this shows up
Code:
Last login: Mon Jun  7 23:46:54 on ttys001
-bash: sdkfolder: No such file or directory
xxxx-xxxxxs-MacBook-Pro:~ xxxxxx$

why is that -bash line in there?

Also, I cannot run 'sudo' at all. I'm on an Admin account, and I have enabled root permissions.

Code:
xxxxx-xxxxxs-MacBook-Pro:~ xxxxx$ sudo su
-bash: sudo: command not found

Thanks in advance.
 
It looks like your PATH is weird. Enter the following command
echo $PATH​
and report the results. On my system sudo lives in /usr/bin.
 
Bash is there as bourne is the default shell. But you can of course change it to other shell of your preference.

Huh, that's an odd result for echo $PATH
I get, for comparison (with defaults)
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Can you check Preferences in Terminal? Startup tab, what is selected for "Shells open with"? If it's not the default login shell, can you please select that, close the prefences, and open a new shell and test with that?

If it's a custom path, what is it?

Did you try to create manually ".bash_profile" by any chance?

As your current path/profile isn't working, try

rm ~/.bash_profile

Quit and restart Terminal.

That deletes the current, non-working bash_profile. You could also try
mv ~/.bash_profile ~/.bash_profile_old instead if you think you need to backup the non-working profile.
 
Back
Top