Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 07-16-2003, 01:16 PM   #1
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15


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?

Old 07-16-2003, 01:23 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
Old 07-16-2003, 01:34 PM   #3
Registered: Jul 2003
Posts: 34

Original Poster
Rep: Reputation: 15
hmmm....can you pls explain to me again in layman's term how can I add it into my current path and how can I do it using symbolic links?

So sorry to trouble you, first time using linux and am trying very hard to understand....

Thanks again for your help.
Old 07-16-2003, 02:20 PM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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..
Old 07-16-2003, 02:25 PM   #5
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Check out this thread I replied to earlier, it gives you quite a bit of understanding of how things work (I hope).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 11:07 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 06:08 AM
how to change relitive links to specific links? wolfe2554 Linux - General 4 07-03-2004 01:40 AM
Links Section updated - Please add your Linux links. jeremy Linux - General 2 11-24-2001 12:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration