LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file/dir structure (https://www.linuxquestions.org/questions/linux-newbie-8/file-dir-structure-237754/)

xemous 10-01-2004 11:06 PM

file/dir structure
 
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

thanks for time, hope i can get some answers

btmiller 10-01-2004 11:09 PM

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.

IBall 10-02-2004 09:28 PM

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.

I hope this helps
--Ian

xemous 10-04-2004 01:51 AM

yep it does mate
cheers


All times are GMT -5. The time now is 03:57 AM.