LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   linux conventions - directories (https://www.linuxquestions.org/questions/linux-general-1/linux-conventions-directories-461521/)

allelopath 07-06-2006 11:31 AM

linux conventions - directories
 
I want to know what is conventional for linux with respect to directory structure.
In particular, I want to setup a directory named 'development' which would be accessed by more than one user.
This directory would have source code for numerous projects. It would look something like what is show below. My question is, where is 'development' typically located? at the top with bin, boot, dev, etc, home, and so on? in usr/local/? I should add that it is possible that more than one user could access this, so locating it in /home/joeuser/ might not make sense.

development
..Java
....project1
......src
......bin
....project2
......src
......bin
..Cpp
....project1
......src
......bin
....project2
......src
......bin

nadroj 07-06-2006 11:42 AM

probably somewhere in /usr/, maybe src/? or maybe put the development folder in /usr/

Agrouf 07-06-2006 11:48 AM

What about /var? (since it is development and changes a lot).

I would create a development user for administrating the files along with a development group and put everything in /home/development
Then put every developer in the development group.
The development user can be handy in order to administer CVS or SVN or whatever versioning tools you use.

allelopath 07-06-2006 12:08 PM

Is "var" an abbreviation for 'variable'?

nadroj 07-06-2006 12:12 PM

yes.. its supposed to be for logs and files that change in size alot.
check out the FHS documentation for it here.. browse through the whole thing too, its a very informative document.

allelopath 07-06-2006 12:42 PM

thanks, i've been looking for a document with that info for a long time

introuble 07-06-2006 02:30 PM

Code:

$ man 7 hier

haertig 07-06-2006 03:02 PM

I would go for something like /usr/local/development personally ... a place that wouldn't get touched with an OS upgrade. Also, whatever directory you decide to use should probably be a seperate mountpoint and not just a subdirectory under some parent mountpoint. This simplifies backups, restores, mounting options, and moving it around to different locations if decide you don't like it's current placement.


All times are GMT -5. The time now is 12:23 AM.