Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This has been puzzleing me for a while now. I run fluxbox, and when i open a console window and type a one word command like "kwrite" it opens the program kwrite. But if i want to open firefox, how come i have to cd into the firefox directory and then type "firefox".
Like for the mozilla browser, i can just type "mozilla" and it will work, same with any other kde program (just type one word command to open).
Anyway, im sure there is a way to link the firefox command to open in one word then having to write "/home/jay/firefox/firefox" right?
PS: i also have to cd into the winex directory to run winex, along with a few other programs that are not comming to mind too, it's not just firefox
It's probably because the Firefox program is not listed in your Path. The Path is the list of directories Bash automatically searches when you request a program. Type echo $PATH to see which folders are in your path and what order they are searched in.
The easiest way to correct the problem is simply to create a symlink to the Firefox exec inside one of the Path directories. usr/bin is generally the recommended location, I believe.
There's two things you can do to resolve this issue:
1. Make sure the Firefox path is in your PATH environment, or
2. Create a symbolic link to the firefox executable by typing ln -s <TARGET> <LINKNAME>. This will create a link in the current directory so if you want you can go to /usr/local/bin and put it in there. Hope this helps
instead of copying what you need to /usr/bin, delete the firefox directory and re-extract the tarball to where it was. As root, use the following command and give that a shot:
ln -s /home/jay/firefox/firefox /usr/bin/firefox
This will create a symbolic link in the /usr/bin directory that will redirect all requests for that file over to "/home/jay/firefox/firefox", and run the application from that directory.
Originally posted by Balkman Of course nothing is that simple in linux.....
I cp firefox excu to /usr/bin/ and tried to run the command "firefox" from my home directory:
Code:
Cannot find mozilla runtime directory. Exiting.
And now the entire thing is messed up, I can't even run firefox from the /home/jay/firefox/firefox directory now without it saying
Code:
Cannot find mozilla runtime directory. Exiting.
The reason you are getting this is because the /usr/bin/firefox overrides the command in your local directory... try typing ./firefox in /home/jay/firefox/firefox directory... or where ever it is located
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.