LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   bash_profile inq (https://www.linuxquestions.org/questions/linux-general-1/bash_profile-inq-124762/)

Robin01 12-10-2003 09:57 PM

bash_profile inq
 
Hello everybody,

I need to add the following line to /root/.bash_profile
Add /usr/local/ssl/bin to the PATH variable.
-side note.. following inst. to insalling openssl...

currently what i have in /root/bash_profile
_____________________________
# .bash_profile
#get the aliases and functons
if [ -f ~/bashrc ]; then
.~/.bashrc
fi

msg n
________________________
the inst. wans this added to the end of the file /usr/local/ssl
...but from the research i been doing has it between "then" and "fi"
whats the correct stes to adding the above to the bash_profile

Tinkster 12-10-2003 10:30 PM

Since all .bash_profile does is to check and
run .bashrc I'd suggest you put the modified
path also into .bashrc

Anywhere (on a line by itself, that is) in .bashrc
do
export PATH=$PATH:/usr/local/ssl/bin


Cheers,
Tink


All times are GMT -5. The time now is 03:51 PM.