Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok, I'm very new to Linux, so my question is very stupid.
I just installed a program called AVS in my redhat 9. All I want to do is to be able to write AVS from anywhere, using the terminal, and the program AVS will run, without having to tell the path averytime i run.
I know this has something to do with .bashrc files, but I'm having trouble finding it out.
yea, you can set up .bashrc to add the directory the AVS program is sitting in to you path. if the full pathname for AVS is /home/usr/somedir/AVS, add this line to you .bashrc
PATH=$PATH:/home/usr/somedir/AVS
you could export this, allowing the updated path to be seen by any subshells you spawn, the above line would then become
export PATH=$PATH:/home/usr/somedir/AVS
if you're new, this probably wont make any difference to you.
of course, that is a better way, i don't know what i was thinking. thats what i do for all the programs that i write myself. if there is only one executable, this would be a better way to do it. if there were say, 10 different executables associated with the program, then you would want to add it to your path.
Well Iḿ a newbie as you can surely say... Iḿ trying to make an application called [ns-2] work
I wonder if I did the right thing, I created a directory called [Applications] in my HOME directory, extracted the tar right there in the Application folder and installed ns2 and then added the following lines to the very end of </etc/skel/.bashrc> file:
now, why doesnt it change the PATH Environment Variables permanently? and is it ok to add Applications folder to PATH instead of adding some subdirectories inside of Applications/ns2 to PATH Env. Var.?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.