LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-19-2005, 05:22 PM   #1
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Rep: Reputation: 35
Default install dir?


Hi all

Real here (as always!)

Just a general question, about Linux file structures. How do they work? I mean, I keep installing stuff to my Home dir, and its getting quite messy. Is the a dir I should be installing to, like /usr/local? What the difference between it all, usr/local/bin, /etc/...

I guess what I am saying is, how does it all work? Windows defaults it all for you. But how about Linux?

Also, if there is a set install dir (like C:/Program Files) then can I easily move the stuff I have now or will it mess it up?

Thanks

Hong
 
Old 02-19-2005, 05:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
for an overview of the average file system, have a look at these articles

http://www.freeos.com/articles/3102/
http://www.linuxdevcenter.com/pub/a/...ilesystem.html

programs will pick their own locations, normally /usr/ or /usr/local/ (and then bin/, lib/ etc...) but essentially you don't need to worry about it. the multiple locations exist for different conceptual or actual implementations, e.g. stuff in /usr/local/bin/something should be physcially local to the machine, while /usr/bin/something should be located on a centrally controlled network location. however if this is not relevant to you, breaking that conventino is not a concern really.
 
Old 02-19-2005, 06:44 PM   #3
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thanks I will take a look into those links!!
 
Old 02-20-2005, 02:05 AM   #4
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
Do echo $PATH to see where common apps get installed. For normal users /usr/local/bin or /usr/bin are good. For root only stuff go with the sbin. The only thing to put in the /home directory is config files (which will get made automatically) or apps that you only want one user using.
 
Old 02-20-2005, 02:07 PM   #5
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thanks!!
 
  


Reply


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
changing default dir of sendmail----- pal Linux - Newbie 0 09-20-2005 12:38 AM
Kdevelop: Changing my programs default "make install" dir DeTHZiT Programming 0 09-26-2004 02:06 PM
default web dir for user varala_kanth Linux - Newbie 3 06-09-2004 05:59 AM
what is the default package data dir? cheesetastic Linux - Newbie 8 04-12-2004 10:34 AM
Adding default Dir to New user Accounts Joshsawyer77 Linux - General 2 01-25-2003 03:38 PM


All times are GMT -5. The time now is 10:21 AM.

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