LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-29-2004, 04:52 PM   #1
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Linux Directory Structure


When i first came to linux I found the directory structure quite confusing. Just an idea but wouldn't it be nice if a big distro like Mandrake tried a new one. I find that locating programs in particular is difficult. Windows give the nice program files option but linux has a few folders with a million executables. I think either a new structure or even a pseudo structure would be nice. Just a directory with symbolic links that looks nice and will save people a lot of time looking through directories with names that don't seem to mean much.

Just an idea.
Boffy
 
Old 10-29-2004, 07:44 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
locate is your friend..
 
Old 10-29-2004, 08:37 PM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I have to agree with Boffy. For one thing the executables are really installed in different places (/usr/bin /usr/local and /usr/share etc.) Sometimes after I install a program I don't even know the name of the executable file to run that program (even to use locate). Most of the time I end up guessing a few times before I hit upon the correct executable name.

So the only thing to do is: before you install any packages in Linux check the list of files that will be installed on your system and note down where they will be copied to. It's a bit primitive but then it'll save you a lot of frantic searching later.
 
Old 10-30-2004, 03:03 AM   #4
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
I understand that no system is perfect and I use locate all the time but I mean for newbies. It took me a long time to understand how to use the terminal and locate.

Boffy
 
Old 10-30-2004, 06:33 AM   #5
AvePtah
LQ Newbie
 
Registered: Jul 2004
Location: Australia
Distribution: Debian (Sarge)
Posts: 17

Rep: Reputation: 0
The Linux file structure is fine. It doesn't need to be changed.

If Mandrake or any other major distribution were to change its file structure, programs designed to compile on a normal Linux system (i.e. 100% of them) would need to be re-programmed to work with a new structure, and programs designed for the new structure won't compile on other distros. We don't need distros to begin breaking standards.

I initially found the structure intimidating (coming to Linux after being a long time doze user), and now I prefer it over doze. Perhaps you would appreciate the structure more if you understand it:

http://www.pathname.com/fhs/
 
Old 10-30-2004, 06:49 AM   #6
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
and don't forget the when compiling from source, one can "ALWAYS"
specify exactly where a program gets installed to !!!
Code:
 ./configure --prefix=/usr 
 ./configure --prefix=/usr/local
 ./configure --prefix=/usr/games
 ./configure --prefix=/usr/local/games

Last edited by 320mb; 10-30-2004 at 06:51 AM.
 
Old 10-31-2004, 01:18 PM   #7
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
I don't have any major objections personally to the system but it is intimidating and therefor another (needless) obstacle for all newbies to overcome.

Boffy
 
Old 10-31-2004, 01:37 PM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
When studying the directory structure in linux you find that are reasons to all of the seemingly odd solutions.
The linux system inherits it's directory structure from the UNIX family, which very early was designed to be used in a network environment, in opposite to windows who discovered the consept of netowrking very late in history.

The directories are among other things designed with the possibilty to start a minimal linux system and later during the boot process mount the remaining directories and programs from a central server. This gives the benefit of centrally installed programs that are adminstred at a central server, a function implemented in wondows first decades later.

Don't take offense. I only have discovered that the linux environment are very well considered before things where made/coded.
 
Old 11-01-2004, 01:01 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It's a technical and Linux-related thread, so I think it fits better to Linux-General.
 
Old 11-01-2004, 01:50 PM   #10
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
Wow I've never had a post moved out of the general forum only into it. Thanks Anyway sorry for the mistake.

Boffy
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Directory Structure Swakoo Linux - Newbie 2 07-19-2005 09:23 AM
Looking for howto on linux directory-structure bronko Linux - Newbie 6 12-30-2003 11:55 PM
Directory structure in linux hero Linux - Newbie 1 09-04-2003 03:55 AM
Linux Directory Structure cmfarley19 Linux - General 1 01-03-2003 08:20 AM
Some basic knowledge of Linux regarding directory structure chem1 Linux - Newbie 3 08-10-2002 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:11 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
Open Source Consulting | Domain Registration