[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fw: How To Permanently Add-to a Users PATH Statement in the Bash Shell



Edit /etc/bash.bashrc to make a system wide change. Edit ~/.bashrc for the user's home directory to make a change for a specific user.


name=Matthew%20Campbell&email=trenix25%40pm.me





-------- Original Message --------
On Jul 7, 2020, 6:57 AM, Stephen P. Molnar < s.molnar@sbcglobal.net> wrote:

The Subject line is the problem with my Debian Buster platform. Now from
Google I see that there has been a change in the way Debian handles this
problem.

My user path statement is:

comp@AbNormal:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Now I have a number of applications that have multiple executable in the
app /bin subdirectory. Hence the need to add to the users PATH statement

As an example I have:

/home/comp/Apps/ADFRsuite-1.0/bin

which I would like to add to the PATH statement and:

export PATH=$PATH:'/home/comp/Apps/ADFRsuite-1.0/bin'

This works unless I open a new Terminal, in which case it is no longer
in the PATH.

How do I make the addition persistent?

Thanks in advance.

--
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype: smolnar1


Reply to: