0

Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?

Every time I open my secureCRT window,I need to run the below to export the path..is there a way to add this permanently to the PATH?

export PATH=/usr/bin:$PATH

1 Answers1

0

When you log in and start bash as a login shell (bash -l) these scripts will be read:

System wide:

  • /etc/profile
    (This one should be shell independent, since it may also be called from ksh, sh, etc etc).
  • /etc/bashrc/

Personal:

  • ~/.profile
  • ~/.bash_profile (this one might actually source the .bashrc file)
  • ~/.bashrc

Decide if you want to make system wide, or user only changes. Then look for these files and select one of them. Add the path changes and start a new shell. Test. If it does not work, close the shell (with logout or Controld) and correct the typo.

Note that I did not write 'log out and start a new shell'.

Hennes
  • 65,804
  • 7
  • 115
  • 169