I'm wondering where a new path has to be added to the
PATH
environment variable. I know this can be accomplished by editing
.bashrc
(for example), but it's not clear how to do this.
This way:
export PATH=~/opt/bin:$PATH
or this?
export PATH=$PATH:~/opt/bin