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.
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.
I'm running on Redhat Linux 7.2 and very new to Unix command.
I had just downloaded Network Simulator 2.26.
I need to set this path "/home/junior/ns-allinone-2.26/bin", so that everytime I log in, I can start using my Network Simulator program.
How do I point my current path to this directory?
I understand that I need to modify my .bash_profile.
I can see .bash_profile when I do "ls -a", but how do I edit/open the content inside .bash_profile?
I did tried the following:
PATH=$PATH:"/home/junior/ns-allinone-2.26/bin"
But it still doesn't help. How do I use the commands "set path" and "export" to get the path going?
I had been struck at this for the past 2 weeks, please help....
if you want to do it in a more "clever" way, you'd better create a /home/junior/bin directory, create a link to every executable you want to be able to run from anywhere into that directory and set the PATH variable to /home/junior/bin.
in your .bash_profile (usually it's only .bash or .profile, but that might be different on a redhat system) write:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.