LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-12-2004, 09:20 AM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
commands


I've installed Firefox in /usr/bin/firefox.

I want to be able to just give the command 'firefox' in a shell.
What's the best thing to do. Write a script that goes to the right directory or just put it in my $PATH variable?
 
Old 10-12-2004, 09:24 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Now doesn't firefox load it already then?
 
Old 10-12-2004, 09:30 AM   #3
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
Ya... /usr/bin should already be in your PATH.
If it's not then you probably want to add it to your PATH
 
Old 10-12-2004, 10:13 AM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Yes, /usr/bin is in my path, but firefox is installed in a folder firefox in /usr/bin and it doenst load with the command 'firefox'.
I put /usr/bin/firefox in my PATH, but is this the cleanest way to do it?
 
Old 10-12-2004, 10:18 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I think the cleanest way is use suse package system (they have one isn't it) and don't change the location.
 
Old 10-12-2004, 10:23 AM   #6
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
yes, they have one for rpm's: Yast.
But I downloaded the latest versions because of a security issue in 0.8 (the one I find in my Yast sources) and there doesn't seem to exist an rpm (yet?).
 
Old 10-12-2004, 10:38 AM   #7
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Best solution:

Put a symlink to firefox in /usr/bin

su -
*password*
ln -s targetlocation/firefox /usr/bin/firefox

Make sure the firefox file you are pointing to is the launcher shell script and not the binary.

All done.

Now when you type firefox at the command line, it launches the browser.
 
  


Reply



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
commands scripttron75 Linux - General 4 10-03-2005 04:36 PM
Commands Instantly Linux - Newbie 3 01-12-2005 01:18 PM
commands tslinux Linux - Newbie 1 12-15-2004 06:54 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 02:15 PM
Commands Susan Linux - General 5 10-11-2001 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 AM.

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