LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directory Structure (http://www.linuxquestions.org/questions/linux-newbie-8/directory-structure-372754/)

fedix 10-13-2005 05:20 PM

Directory Structure
 
Where does Linux / Fedora Core 4 puts it's
system files
installed application files?

I found that my tar .gz files gets downloaded to my Desktop and if I do the unzip and make from there, it's all done on my Desktop? Where do I need to move the files to?

Thanks

BTW: How do I remove a directory. rdir and rd doesn't work.

Thanks

tuxrules 10-13-2005 05:39 PM

installed applications usually go in

/usr/bin
/usr/local/bin

config files usually go in
/etc

You would have to install them so the apps are available system-wide (/usr/bin and /usr/local/bin are system-wide availability locations)

to remove a empty directory

Code:

rmdir directory-name
To remove populated directories...and be very careful while using this command as **root**

Code:

rm -fr directory-name
Tux,

tkedwards 10-13-2005 07:09 PM

Programs you install using RPMs usually install into /usr while programs that you compile yourself install into /usr/local (if you run the 'make install' bit as root they'll automatically install into /usr/local). This is for programs that follow the Unix convention of spreading themselves across bin, lib, share... structure. For programs that just install into a single 'program folder' (for example the Firefox that you download from mozilla.org) you put them in /opt.

Linux doesn't really have 'system files' or a system directory. The kernel and important boot files live in /boot, basic commands live in /bin and /sbin, system-wide config lives in /etc and most user programs live in /usr. However besides the kernel calling anything else a 'system file' is arbitrary - eg. is samba 'system files' or an application?

Anyway is all described in the File Heirarchy Standard: http://www.pathname.com/fhs/pub/fhs-2.3.html

fedix 10-14-2005 03:48 PM

Thanks everybody. 8rt help!


All times are GMT -5. The time now is 01:56 AM.