change PATH permanently on Ubuntu [closed] change PATH permanently on Ubuntu [closed] unix unix

change PATH permanently on Ubuntu [closed]


Add

export PATH=$PATH:/home/me/play

to your ~/.profile and execute

source ~/.profile 

in order to immediately reflect changes to your current terminal instance.


Add the following line in your .profile file in your home directory (using vi ~/.profile):

PATH=$PATH:/home/me/playexport PATH

Then, for the change to take effect, simply type in your terminal:

$ . ~/.profile


Try to add export PATH=$PATH:/home/me/play in ~/.bashrc file.