LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-22-2006, 12:30 AM   #1
kc0ltv
LQ Newbie
 
Registered: Feb 2004
Location: Hermantown, MN
Distribution: Suse 10 (from LXF DVD)
Posts: 14

Rep: Reputation: 0
Making an executable/path into a command


I just upgraded from the Firefox 1.0.6 included with my distro (SUSE 10 OSS) to version 1.5. I unzipped it into my home directory, moved the old Firefox directory (/opt/MozillaFirefox) to /home/jake/of (as in "Old Firefox"), and moved the directory with the new Firefox to /opt/MozillaFirefox. Now when I simply type in "firefox" at the command line nothing happens, so I need to enter the entire path to execute the new version. How can I get it to do this by simply typing in "firefox" anywhere in the system? All of the shortcuts in KDE, etc. use simply the "firefox" command, so I'd like to associate "firefox" with the executable location, /opt/MozillaFirefox/firefox. Thank you.
 
Old 01-22-2006, 01:10 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
this involves modifying the $PATH variable.

open a terminal and run the command: "PATH=$PATH:/opt/MozillaFirefox/"

then you should be able to launch it by simply typing 'firefox'

to make the changes permanent, edit or create the file ~/.bashrc and add these two lines:

PATH=$PATH:/opt/MozillaFirefox/
export PATH

Last edited by nadroj; 01-22-2006 at 01:12 AM.
 
Old 01-22-2006, 02:28 AM   #3
kc0ltv
LQ Newbie
 
Registered: Feb 2004
Location: Hermantown, MN
Distribution: Suse 10 (from LXF DVD)
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you.
 
  


Reply


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
wo to set up executable so i can run it without typing whole path? Lechium Linux - Newbie 2 07-03-2004 05:40 PM
Path of the executable brainstormingin Programming 4 03-25-2004 10:24 PM
how do I make a program executable through the command prompt? iammeuno Linux - Software 1 12-18-2003 04:29 PM
Executable, but not in path. Sledge Red Hat 0 12-03-2003 09:48 PM
how do I find the executable command Culbert Linux - Software 6 03-23-2003 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:05 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