Closed Thread
Results 1 to 8 of 8

Thread: The file structure

  1. #1
    turbocharged123 is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    39
    Rep Power
    0

    The file structure

    As you might have guessed from my other threads, I'm am quite a newbie at Linux, and I cannot understand the file structure. In Linux it is confusing to me as I am new to Linux. In Windows I used to install programs into c:\Programs\<Program Name>. So if I install Net Beans, it would be in c:\Programs\NetBeans and Open Office would be in c:\Programs\OpenOffice. But In Linux when I install something, where does it go? There might be a structure, but I haven't figured it out. Can you enlighten me with what this "/" means and mounting is all about?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: The file structure

    Linux doesn't have the concept of drive letters. Instead, every device is mounted into the file system. "/" is the root of the file system. It contains hooks into every device in your system: hard drives, files, modems, mice, video cards, everything!

    /home contains the folders for individual users on the system. This is equivalent to C:\Documents and Settings on Windows.

    /usr contains a lot of the installed programs. For example, /usr/games contains all the games I've installed.

    /bin contains additional programs. This is sort of like c:\windows\system32

    /dev contains the devices on your system. Hooks into wifi cards, modems, etc.

    There are several other important folders as well, such as /etc which contains a lot of configuration files.

    mounting is how you make a disk drive accessible to the file system. They are usually in /mnt

    You can read more about them at these sites:
    Linux's directory structure
    Linux Directory Structure
    Linux Directory Structure Overview -- Debian Admin
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: The file structure

    Linux doesn't have the concept of drive letters. Instead, every device is mounted into the file system. "/" is the root of the file system. It contains hooks into every device in your system: hard drives, files, modems, mice, video cards, everything!

    /home contains the folders for individual users on the system. This is equivalent to C:\Documents and Settings on Windows.

    /usr contains a lot of the installed programs. For example, /usr/games contains all the games I've installed.

    /bin contains additional programs. This is sort of like c:\windows\system32

    /dev contains the devices on your system. Hooks into wifi cards, modems, etc.

    There are several other important folders as well, such as /etc which contains a lot of configuration files.

    mounting is how you make a disk drive accessible to the file system. They are usually in /mnt

    You can read more about them at these sites:
    Linux's directory structure
    Linux Directory Structure
    Linux Directory Structure Overview -- Debian Admin
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #4
    turbocharged123 is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    39
    Rep Power
    0

    Re: The file structure

    So the programs installed are 'scattered' around through all the system?

  6. #5
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: The file structure

    Basically, yes. The same is true in Windows, but people tend to be less aware of it there. There is an organization, but it is not the same as the Windows model.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #6
    turbocharged123 is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    39
    Rep Power
    0

    Re: The file structure

    Windows does that too? Hmm, as far as I know all my programs are installed all in the Program Files folder.. although there might be some dll files scattered around... but the main program is in Program Files, isn't that true?

  8. #7
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: The file structure

    The OS programs tend to be in c:\windows\system32, .dll's are there. Settings are stored in Documents and settings\All Users, Documents and settings\[user], the registry, etc. As you start digging, you find that things are a little more scattered than is immediately obvious. You can install a program and have information in multiple folders, the registry, etc.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    turbocharged123 is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    39
    Rep Power
    0

    Re: The file structure

    Now that I'm thinking about it, you are absolutely right... only the main files are in program files... thanks for the explanation

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 12-26-2011, 01:05 PM
  2. Help with file structure
    By Chuchoman in forum General Programming
    Replies: 13
    Last Post: 09-17-2011, 09:02 AM
  3. What is the size of this C structure
    By Roger in forum C and C++
    Replies: 10
    Last Post: 08-23-2010, 09:20 PM
  4. .dic file structure
    By ivancp in forum C and C++
    Replies: 1
    Last Post: 07-28-2010, 07:51 PM
  5. file structure mangement
    By techtoast in forum Python
    Replies: 3
    Last Post: 10-08-2009, 08:42 PM

Tags for this Thread

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