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 07-06-2006, 11:31 AM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
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

Last edited by allelopath; 07-06-2006 at 11:39 AM.
 
Old 07-06-2006, 11:42 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
probably somewhere in /usr/, maybe src/? or maybe put the development folder in /usr/
 
Old 07-06-2006, 11:48 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
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.

Last edited by Agrouf; 07-06-2006 at 11:51 AM.
 
Old 07-06-2006, 12:08 PM   #4
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
Is "var" an abbreviation for 'variable'?
 
Old 07-06-2006, 12:12 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.
 
Old 07-06-2006, 12:42 PM   #6
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
thanks, i've been looking for a document with that info for a long time
 
Old 07-06-2006, 02:30 PM   #7
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Code:
$ man 7 hier
 
Old 07-06-2006, 03:02 PM   #8
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
 
  


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
The Naming Conventions nodisk Linux - Newbie 6 12-15-2005 05:15 AM
Installation Conventions smudge|lala Linux - Software 2 01-26-2005 11:16 AM
conventions igort Conectiva 1 01-03-2005 09:46 PM
Naming conventions ??? bigjohn Linux - Newbie 1 12-07-2003 10:25 AM
Conventions - Any ideas? WeNdeL Linux - General 2 04-16-2003 08:47 AM

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

All times are GMT -5. The time now is 07:26 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