LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   calling from command line (https://www.linuxquestions.org/questions/linux-newbie-8/calling-from-command-line-405623/)

lilili 01-19-2006 10:23 PM

calling from command line
 
hi
how can I called firefox from the command line, so when I type firefox in command line firefox will fire up
Thank You

tw001_tw 01-19-2006 11:13 PM

As long as:
firefox is installed
the exacutable is in your PATH (etc/profile)
you have permissions to run it (which you should)
your in X:

open up a console and type ' firefox ' . Worked for me.
If either this doesn't work, or I misunderstood your question,
post back.
-tw

lilili 01-19-2006 11:36 PM

when I type firefox in command line it says command not found
what I'm trying to do is to open command line then type firefox then firefox starts

tw001_tw 01-19-2006 11:49 PM

try this, type :
find / -name "firefox"

Your results should include the line:
/usr/bin/firefox (<-- default install location in slack 10.2)

If its found, then type:
/usr/bin/firefox
If it works, then you need to make sure /usr/bin is in your path.
(see above post) OR you can add a alias in your .bashrc file, Or.....

If it doesn't work, it may not be exacutable from some really odd reason,
or something equally unexpcted.
I'm guessing you can start it by an clicking on an icon, right?
-tw

lilili 01-20-2006 12:09 AM

this is what I got when I try find -name firefox in /
./usr/bin/firefox
./usr/lib/firefox
./usr/lib/firefox/firefox

when I type /usr/bin/firefox no such file or directory
the only way i can run firefox is by going to /usr//lib/firefox and click firefox from there

Poetics 01-20-2006 12:33 AM

Take a look at the 'alias' command -- it can help you without you needing to change your path, if you want

pitom 01-20-2006 03:44 AM

If you find where the firefox is go there and type it in the following way:

./firefox


You need to have "./" before name of the program.

Otherways you get the error:
command not found

gl
/piotr

lilili 01-22-2006 05:07 PM

thanks, I have it fix now
I have to tell it where I extract firefox

itz2000 01-22-2006 05:09 PM

try
Code:

mozilla-firefox
should work


All times are GMT -5. The time now is 02:48 AM.