[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to add dir to path

On 8/7/07, Manon Metten <manon.metten@gmail.com> wrote:
> What's the reason I shouldn't touch /etc/profile but use
> ~/.bash_profile instead?

For the simple reason that you wouldn't want (or prefer) to mess with
the system's defaults unless otherwise forced to. Moreover, think of a
machine where you do not have root access, like one in your office or
department or somewhere else. You can still add your local dirs to the
PATH in ~/.bash_profile.

For more on bash startup see
/usr/share/doc/bash/examples/startup-files for examples.

Take some time out and go thru man bash, it is a nice document.

http://counter.li.org  #402424

Reply to: