How to correctly add a path to PATH?
1409
votes
12
answers
3676919
views
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
Asked by Paolo
(17915 rep)
Dec 4, 2011, 08:57 PM
Last activity: Mar 22, 2025, 05:48 PM
Last activity: Mar 22, 2025, 05:48 PM