3

Possible Duplicate:
How do I set PATH and other environment variables?

I would like to put the path of a binary in my bash profile which is not present in the usual location like /usr/bin or /sbin. For example, if the following is the path of the binary:

/path/to/bin

How would I put this path permanently in my bash profile so that every time I login I don't need to specify the path of the binary?

1 Answers1

5

You should edit your ~/.bashrc or .bash_profile, and add something like:

export PATH=$PATH:/path/to/bin
Bruno
  • 127