Path?
I ‘m using bash in Linux (Red Hat 7.1). Can someone explain to me how can I add a program to path, that I will able a program from bash command line.
Thanks in advance |
well, if the program did not install to one of the path's already, like in /usr/local or whatever.. its easier for you to just add the path of the program or where it resides in for the user..
you can edit the bash_profile or bashrc file's in the user's home directory... |
A little correction to tricky's post, the files are .bash_profile and .bashrc (dot is mandatory in the front of these files, they are hidden files). For one time change you can use
export PATH=$PATH:/where/my/program/is and later you can add this line into .bash_ptofile file. |
Quote:
|
this question is more directed to trickykid.
Is the .bash_profile created in slackware by default or do you have to create it your self?. |
Ttricky don't take it personaly, you know for some ppl if it's not there than there's something wrong with the system, etc they start asking again, I don't have these files and so on.;) :D
|
If you are talking about my question, in my experience with redhat it will create it by default but when I started using slackware I dont ever remember seeing it in my home dir at all.
I just want to know if thats normal or not. |
nope slackware doesn't use those files or create them by default. i tend to make my changes in the /etc/profile , system wide defaults for all shells.. well, in most cases.
|
Thanks, Just wanted to make sure.
|
All times are GMT -5. The time now is 06:41 AM. |