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 have some questions here, hope someone can give me some advise.
Take for instance that I've installed netscape in my pc. I'd like to just type netscape in my working directory to bring up the browser. How can I go about to link to the browser?
I've read about the symbolic and hard links, is this the correct way to link to the netscape from my working directory? In what situation should I be using symbolic link and under what situation should I use hard link instead?
Well, if you installed Netscape and the command to run it isn't in your PATH, you could just add it to your current path so you don't have to create a link.
But on the other hand, if you didn't want to add it to your users path, you could place a symbolic link in a directory that is in your path like /usr/local/bin to point to netscape, etc?
In a situation like this, use a symbolic link. But I would say nither really and just add the command/executable in your users path, which seems to be more proper.
Well, if your using Bash as your shell in which I'm sure you are, you can edit your users .bashrc file located at /home/<user>/.bashrc
Edit that and add the path to your netscape command/executable on your system, like if it was located in /opt/netscape/ you would add that directory to your already defined path in your .bashrc file.
If you don't have a .bashrc file then you'll want to edit your global file which is located at /etc/profile.
Have a search around the forums here, adding to your $PATH is mentioned all the time and there are several ways to do it instead of just editing your bash files to make it permanent..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.