LinuxQuestions.org
Review your favorite Linux distribution.
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 03-29-2004, 12:47 PM   #1
TJandE
LQ Newbie
 
Registered: Mar 2004
Location: Washington State, USA
Distribution: FreeBSD, RedHat, & AIX
Posts: 22

Rep: Reputation: 15
Directory/Folder Layout


Seems like a noob question to me.

I've been trying to learn what all the folders/directories in the linux hierarchy are for. I've found a few good references that have answered most of my quesitons (including FHS (URL removed) )

What I still don't completely understand is the difference between usr and usr/local The references state that usr/local is for "local binaries and libraries" seems circular to me, since I can imagine a couple of meanings for local in this instance. I understand that usr could be on a local drive or a network drive (or ROM or anything really), does that mean that usr/local should be a local drive if usr is remote?

Thanks,
Micah
 
Old 03-29-2004, 01:19 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Imagine a university network, using NIS and the
machine you have at your paws basically gets
everything from an NFS server somewhere on
campus ... there maybe a need for you to have
executables that others won't need. That's where
/usr/local comes into the picture :)

These days, however, the separation often takes
place to allow you to preserve your stuff compiled
from source in case you feel the urge to delete
the underlying distro ... in this case it would be a
clever move to have /usr/local on a separate
partition.


Cheers,
Tink
 
Old 03-29-2004, 09:53 PM   #3
TJandE
LQ Newbie
 
Registered: Mar 2004
Location: Washington State, USA
Distribution: FreeBSD, RedHat, & AIX
Posts: 22

Original Poster
Rep: Reputation: 15
Okay, that makes sense.

Two more minor questions arose while looking at this stuff. What is /opt really for. Some of the docs I read just say it for "large applications packages", packages like what?

And according to the FHS, compliant systems shouldn't have folders under /mnt. So where RH8 (and others I'm sure) put /mnt/cdrom and /mnt/floppy, FHS recommends putting those in /media. Obviously it's my system, I can mount wherever I wish, but I was curious if distros are starting to move towards FHS or is FHS just a moving target?

Thanks for the help,
Micah
 
Old 03-29-2004, 11:10 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
What is /opt really for. Some of the docs I read just say it for "large applications packages", packages like what?
Ummm ... under Slack for instance KDE got
installed there, with > 150MB I'd consider it
major :)
cdrtools by Schilly will install into /opt if you
don't tweak them, even though that's not a
huge package.

As for the /mnt, /media in FHS (or FHS in general)
I don't give an owl's hoot ;} ... I use what works
for me, and what I grew up with, I guess I don't
expect others to get along well with my systems :D ...
I don't know what other distro's are doing :}

My /cdrom lives under / (root) because I like
it that way - same for external devices like my
camera.


Cheers,
Tink
 
Old 03-30-2004, 10:02 PM   #5
TJandE
LQ Newbie
 
Registered: Mar 2004
Location: Washington State, USA
Distribution: FreeBSD, RedHat, & AIX
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the answers. I realize that Linux and unix in general is really flexible about everything, including layout. Which is both cool and strange coming from my background.

Micah
 
  


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
New pointless war - Folder vs. Directory scott_R General 34 01-24-2007 05:59 AM
Directory index of web folder Swakoo Linux - Newbie 3 06-17-2005 04:28 AM
Directory/folder mirroring utility? paulsh2k4 Linux - Software 2 09-14-2004 02:44 PM
Apache directory index layout lupus9537 Linux - Software 1 04-26-2004 03:23 PM
Difference between directory and folder in windows? Squall General 7 02-03-2004 08:10 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration