Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


bash | 10 comments | Create New Account
Click here to return to the 'bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
bash
Authored by: geoffsaulnier on Mar 27, '01 11:53:49AM

in your home dir (~) create a file called .profile (or vi it if there already is one) and add, somewhere:

PATH=${PATH}:/usr/bin:/usr/local/bin:/usr/sbin:/usr/sbin/sbin:/usr/ucb:$HOME/bin
export PATH

And that will set your path for any shell that you log in to with bash.



[ Reply to This | # ]
RE: bash
Authored by: Anonymous on Mar 27, '01 02:35:35PM

Looks like it's working fine now. I wrote the following to ~/.profile

PATH=${PATH}:/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/ucb:$HOME/bin
export PATH

instead of:

PATH=${PATH}:/usr/bin:/usr/local/bin:/usr/sbin:/usr/sbin/sbin:/usr/ucb:$HOME/bin
export PATH

I'm assuming that :/usr/sbin/sbin was a typo? I replaced it with :/sbin

And BTW, what's /usr/ucb? I don't see that in my filesystem.


Thanks for all the help!

-Jeff K.



[ Reply to This | # ]
RE: bash
Authored by: geoffsaulnier on Mar 28, '01 11:10:18AM

Yikes, sorry! Been in SunOS land for too long. /usr/ucb is where all the good stuff like the old ps lives.

The sbin stuff was, indeed, a typo.



[ Reply to This | # ]
RE: bash
Authored by: geoffsaulnier on Mar 29, '01 10:19:14AM

that didn't make sense, did it!?!?!

It's where the BSD (ucb = university of california at berkely) stuff lives on SunOS/Solaris. Obviously, on MacOS X, which is BSD, that's what you get anyway.

That makes a little more sense, I hope!



[ Reply to This | # ]