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.
i'v been installing a heap of programs recently and was wondering were they are stored
i figured out (hope im right here) that the 'stand alone' commands (were you can type in a command in the shell without needing to be in a certain directory) for the programs i have installed are in the dir /usr/local/bin
but, were are all the other commands stored, like reboot, shutdown, lilo
and were are the programs files that relate to the commands in /usr/local/bin stored
firefox runs out from its down dir as sh /firefoxdir/firefox , i want to intergrate it within the file system so i can run it from the shell as 'firefox'
also, were are the fedora firewall settings stored so i can edit them
There are several bin directories -- /bin (critical system binaries), /usr/bin (generally stuff that came with your distro) and possibly others like /opt/bin, depending on how stuff is set up. Likewise, binaries primarily intended to be used by the superuser are placed in sbin directories, /sbin, /usr/sbin, etc. Shutdown and friends generally live in /sbin.
As for firefox, you can symlink the executable into a directory in your PATH or add the firefox directory to your PATH. The firewall config for Fedora probably lives somewhere in /etc/sysconfig -- root around a bit and you should find it.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Try, as root,
Code:
ln -s /firefoxdir/firefox /usr/bin
You can then run firefox by simply typing firefox. This will also work for any other programs that you install.
If you want to add a new directory to your path, add the following lines to your ~/.bash_profile
Code:
PATH=/full/path/to/directory:$PATH
export PATH
When you log out and log back in again, the new directory will be part of your PATH, and you can run executables in that directory by just typing their name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.