LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2004, 01:07 PM   #1
tdxloki
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 1
Posts: 13

Rep: Reputation: 0
bash: firefox: command not found


Hello all,

I am trying to start firefox with the -profilemanager option but I cannot start the program from the command line.

How would I launch firefox from the command line?

Firefox starts when I double click on the "firefox" application/x-shellscript file from a file browser window but when I cd to that directory and type "firefox" from the command line I get the return:
bash: firefox: command not found

Are x-shellscript files only for starting programs from the GUI and not from the command line?
 
Old 10-30-2004, 01:11 PM   #2
Courthold
Member
 
Registered: Nov 2003
Posts: 58

Rep: Reputation: Disabled
try ./firefox --options from the directory
 
Old 10-30-2004, 03:23 PM   #3
tdxloki
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 1
Posts: 13

Original Poster
Rep: Reputation: 0
Courthold,

Thanks. It worked.

./firefox -profilemanager worked also.

Is the period slash preceeding the shellscript filename required to execute all shellscripts from the command line?
 
Old 10-30-2004, 04:17 PM   #4
damicatz
Member
 
Registered: May 2004
Distribution: FreeBSD 7, Debian "Squeeze", OpenBSD 4.5
Posts: 167

Rep: Reputation: 30
The ./ is required for running scripts/programs unless you add that directory to what is called the PATH or Environment Variable. ./ tells bash to look for the program/script you want to run in your current working directory.

The PATH variable names what are essentially global folders, folders that you can run programs from without having to be in them to do so.

You can add Firefox to the PATH Variable for the current session by running the command :
export PATH=$PATH:[PATHTOFIREFOX]

If you want to add it to the PATH variable permenatly there is a guide on how to do that here. This guide refers to commands that you would use in a Perl Script but farther down it has instructions on how to modify your Bash Startup Script so that a directory is added to the PATH Variable.
 
Old 10-30-2004, 05:26 PM   #5
tdxloki
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 1
Posts: 13

Original Poster
Rep: Reputation: 0
damicatz,

Ok. Great. Thanks for the explanation, very helpful.

Linux is awesome.
 
Old 10-30-2004, 08:31 PM   #6
stonecrest
Member
 
Registered: Sep 2004
Distribution: Arch :D
Posts: 66

Rep: Reputation: 15
just as a FYI, you can also create a symbolic link to firefox. Something like
ln -s /path/to/firefox /usr/bin/firefox

this basically makes a shortcut in /usr/bin/ to wherever you installed firefox. Since /usr/bin/ is definitely in your path, you'll be able to type "firefox" from anywhere.
 
  


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
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 01:45 PM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 10:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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