Page 3 of 11 FirstFirst 12345 ... LastLast
Results 21 to 30 of 106

Thread: Does the linux file structure work?

  1. #21
    Join Date
    Jun 2005
    Beans
    6,115

    Re: Does the linux file structure work?

    It all goes back to unix, heck even windows has a unix like filesystem now in vista.
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

  2. #22
    Join Date
    Apr 2006
    Location
    Coventry
    Beans
    1,379
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Does the linux file structure work?

    But thats what I'm saying. I'm no expert but wasn't Unix written for computers that were vastly inferior to what we are using today? I mean perhaps the way it was structured was so as to conserve space.

  3. #23
    Join Date
    Mar 2007
    Location
    Estonia
    Beans
    81
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Does the linux file structure work?

    Quote Originally Posted by OoooMatron View Post
    I'd like a single directory per program to understand what was put there. Much easier.
    It's a double edged sword. Users might start seriously messing up their system with this. At least the way it currently is everything seems to work. So I'd say the devs know exactly where everything should go.
    The truth may be out there, but the lies are already in your head.

  4. #24
    Join Date
    Apr 2006
    Location
    Coventry
    Beans
    1,379
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Does the linux file structure work?

    I disagree. Although there is the old age if it ain't broke don't fix it like I identified originally there can be problems as it currently stands. If there is a single directory per program deleting a directory means I potentially comprimise one program. As it stands now I don't delete a directory i delete some obscurely named file which for all I know is what keeps my speakers working!

  5. #25
    Join Date
    Jun 2005
    Beans
    6,115

    Re: Does the linux file structure work?

    Quote Originally Posted by abhiroopb View Post
    But thats what I'm saying. I'm no expert but wasn't Unix written for computers that were vastly inferior to what we are using today? I mean perhaps the way it was structured was so as to conserve space.
    Yes that is probably a part of the reason, even DOS had something like our filesystem at some point.
    But Unix in its original form was never targeted at desktop users, it was for servers.
    On servers its not a good idea to have root files mixed in with user files, this is where the windows issues come in at.
    Unix in its original form was the pinnacle of security thanks to its directory being different then most others, if an attack happened on the user level the core could still function like nothing happened.
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

  6. #26
    Join Date
    Mar 2008
    Location
    Cardiff, UK
    Beans
    427
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Does the linux file structure work?

    Windows is not half as simple as you made it out to be.
    Quote Originally Posted by abhiroopb View Post
    In windows the file structure is something like this:
    c:\
    Documents and Settings
    - user documents, funnily enough NOT that many settings!
    Program Files
    - where any/all program data goes when you install something
    Windows
    - has all the system folders and registry entries, basically everything that makes the computer work
    Sorry, that's wrong. Lots of settings get installed in Documents and Settings, let's see, in Windows XP, you have the Local Settings and Application Data folders, Local Settings stores IE's cache, whereas Application Data stores Opera's cache. I'm pretty sure there's the user registry file under Documents and Settings as well.
    Program Files: not just for program files, but also for user files. This is mainly because Windows historically did not have a strong ownership and permission structure like Linux, and so a lot of programs stored their user information in Program Files. Opera, if you install it in single user mode, will put bookmarks and cache in there.
    Windows: this contains much more than just the basic necessities to make this system work, this contains system32's dll hell, which means program files end up in both Program Files and Windows.

    1. Lets say I install a program, if I do it with APT, or install a .deb package usually uninstalling it is a simple case of using apt-get or synaptic. However, when I compile a program from source (which is required by a lot of programs). I am left with a plethora of files spread out all over my hard drive. Why is this? Wouldn't it make more sense to have them all in one folder like in windows?

    I know this isn't windows and I should use a different mindset but what is the benefit of spreading it out like this?
    When you install programs in Windows, files are spread out across the entire filesystem. Only stand-alone .exe's don't do this. Try searching for stand-alone's and you'll find out there are quite rare on the Windows side. Why do you think setup.exe's are necessary? It's in order to spread out files!

    Windows tries to hide how complicated it really is by only providing three folders. Ubuntu tries to hide how complicated it really is by only showing a two folders: the home folder and the /media folder, and by always, always insisting on debs and the repository. Compiling from source was never meant for humans.

  7. #27
    Join Date
    Apr 2006
    Location
    Coventry
    Beans
    1,379
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Does the linux file structure work?

    Again like I said I wasn't sure about windows. In any case my comparison with windows was only to get this discussion started. I don't care how Mac OSX or Windows works. I was clearly wrong and I accept that. What I am trying to understand is why is Linux so convoluted?

    As Sunny points out Unix was designed for servers and so for security. Is this why it is the way it is currently? So the entire basis of linux is based on something that was originally designed for servers? Sure its safe, which is very important, but is it practical any more?

  8. #28
    Join Date
    Aug 2005
    Location
    Sweden
    Beans
    416
    Distro
    Xubuntu

    Re: Does the linux file structure work?

    But in OS X, the applications are usually kept in a single folder. Sure, some applications has to be installed using Fink or Darwinports, but the applications that are made for OS X are each kept in a separate folder.

    What is bad about this? I'd still like to have APT since it's very good, but to me the file structure of Linux is a bit strange and I agree that some parts seem unnessecary.

  9. #29
    Join Date
    Jun 2007
    Beans
    74

    Re: Does the linux file structure work?

    Quote Originally Posted by abhiroopb View Post
    I am not complaining!!!! Why do you keep assuming that I am complaining? I am happy with Ubuntu (again I've said it!). And I don't care what Mac OSX users, what difference does it make with my question here.

    And I don't care that windows has problems (thats not why I am here).

    All i want to know is why is the file structure of linus designed the way it is. So far you've just said that it is to keep things separate and secure. How does that work? Couldn't I just as easily delete it? and I though /home was for users what is there in /usr anyway?
    The file structure is "flatter" than Windows... That's all. If you open your Windows folder, you will find a complex array of directories, and none of it makes _any_ sense to my eye. I've played a lot with Win 3, and a bit with Win 95, and less with Win 98 and 2000, and haven't even looked at XP, but every iteration, this structure got more complex and inscrutable--like you said--"smart" users don't touch it.


    However, the Unix directory structure is flatter, and much less inscrutable. In fact, it's very logical--if you know the logic. Yes, it is arbitrary, but, but it is also logical.

    Others have mentioned the logic of the structure, but maybe a couple points would be helpful.

    any folder named "bin" is where the main executable, binary code goes. "Share" is where shared libraries go. include is for compiling--at least in my experience(I understand include less than the others). etc. is for various configuration files.

    All of these things are shared between applications, so, for instance, if you use multiple windows managers, they all know where to look for things. All the programs do, too.

    Now, when it comes to the usr folder it's a bit different. BTW, usr is _not_ short for "user". That is the "home" folder's task. That's where all your personal files go, and the only place a user should think of putting things and looking. The system should take care of putting things in the other places, or, if you like using the command line to configure, to navigate that to manually configure things.

    Now, the top level folders (/bin;/mnt:/dev;/opt;/etc, etc) are for the lowest level system items. Typically, other than X11 stuff, they all should be for use before you start X. It's all the real nitty-gritty stuff. For instance, your super basic command line tools will be in /bin and /sbin.

    The real fun in Linux begins when you go into the /usr directory structure. Now, usr (Unix System Resources? or Uniform System Resource? I forget the exact acronym, but it's something like one of these--Google(R) it.) contains all the goodies that you need to make your copy of Unix yours. Oddly, I believe that Ubuntu kind of breaks a bit of Unix pattern in usr, because it puts the bulk of its binaries and such in /usr/bin, rather than /usr/local/bin, and all the libraries, etc. also go in /usr/ rather than /usr/local. I'm not really sure why, but in any case, it helps me, because when I compile something from scratch, I put it into /usr/local, which is almost empty except for my own mucking around, so I really can't complain.

    However, another place to put your own "creations" is the /opt folder at root. It is "optional" you know.

    So, as I said, there is logic--just not the Windows logic. Yes, Linux could (and Ubuntu, in particular could) create a "System" folder, and drop all of these into it--and, in fact, if you were savvy enough, you could do it yourself! But that would take away the simplicity and "flatness" that the directory structure has now.

    Personally, I'm quite happy with the way things are.

    (For the record, when I upgraded my Mac to OS X, I made all invisible files and folders visible, and began to explore what it was all about--that's when and where I learned all this stuff--however, my understanding has vastly deepened since installing Ubuntu, and beginning to actually compile from source! If you really want to begin to understand the whys and hows, I heartily recommend trying to compile some things from source--it will help you immensely.)

    -Jon

  10. #30
    Join Date
    Jun 2005
    Beans
    6,115

    Re: Does the linux file structure work?

    [QUOTE=bogoliubov;5147850]But in OS X, the applications are usually kept in a single folder. Sure, some applications has to be installed using Fink or Darwinports, but the applications that are made for OS X are each kept in a separate folder. /QUOTE]

    Well OSX still has some characteristics as linux does, it probably has its own share of unusual directories too.

    Quote Originally Posted by abhiroopb View Post
    What I am trying to understand is why is Linux so convoluted?

    As Sunny points out Unix was designed for servers and so for security. Is this why it is the way it is currently? So the entire basis of linux is based on something that was originally designed for servers? Sure its safe, which is very important, but is it practical any more?
    Linux may seem convoluted, but its less convoluted if you know how it works.
    Now as for the unix debate, yes it holds many standards that may seem out of date or impractical to people... but we are talking about a OS that is older then DOS, in fact UNIX is probably the oldest OS that is still in wide use today in some shape or form and that includes linux.
    It is what works that matters here, and the unix standard is a good standard to live by.
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

Page 3 of 11 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •