Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I bet this has been asked before but I am having no luck finding it, probably because I am not even sure what to look for.
I have an executable that is let's say in folder /A but I am trying to run it from folder /B which is where I have my input files to the executable file. I believe I need to edit my .profile but what exactly should I search for so that I can do this? is it paths?
The file .profile goes into your home directory.
To find if it's there, use "ls -a" or "ls -la" on your home directory,
ie
Code:
ls -la /home/you
If you want the same setting for all users on the system (instead of just your user), you can "su" to root
and put the same PATH=$PATH:/A stuff in /etc/profile instead of your .profile.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.