Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 10-01-2004, 11:06 PM   #1
Registered: Jun 2004
Posts: 80

Rep: Reputation: 15
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
Old 10-01-2004, 11:09 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
Old 10-02-2004, 09:28 PM   #3
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Try, as root,
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
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
Old 10-04-2004, 01:51 AM   #4
Registered: Jun 2004
Posts: 80

Original Poster
Rep: Reputation: 15
yep it does mate


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing tarballs with dir structure smudge|lala Linux - Software 4 09-15-2005 03:25 PM
f_count of file structure amitgoel25aug Linux User Groups (LUG) 3 08-08-2004 07:39 AM
f_count of file structure amitgoel25aug Programming 3 07-09-2004 08:59 AM
File structure of Linux TDEE Linux - Software 6 02-26-2003 11:10 PM
File Structure Stephanie Linux - General 2 07-19-2001 04:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration