LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2008, 05:01 AM   #1
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Smile What is the /srv directory actually for???


Hi all,
I am a new user to Linux, as i am trying to under stand the OS i have been looking at what all the different directories that are installed on the machine as standard after installing RedHat Enterprise version 5. I have done a text installation on an X86 machine. The only directory that i cannot find any information on is the srv directory does anyon know what it is for, and who uses it?
 
Old 08-04-2008, 05:03 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
According to the Filesystem Hierarchy Standard:
Quote:
Originally Posted by FHS
/srv : Data for services provided by this system
Purpose

/srv contains site-specific data which is served by this system.

Rationale:

This main purpose of specifying this is so that users may find the location of the data files for particular service, and so that services which require a single tree for readonly data, writable data and scripts (such as cgi scripts) can be reasonably placed. Data that is only of interest to a specific user should go in that users' home directory.

The methodology used to name subdirectories of /srv is unspecified as there is currently no consensus on how this should be done. One method for structuring data under /srv is by protocol, eg. ftp, rsync, www, and cvs. On large systems it can be useful to structure /srv by administrative context, such as /srv/physics/www, /srv/compsci/cvs, etc. This setup will differ from host to host. Therefore, no program should rely on a specific subdirectory structure of /srv existing or data necessarily being stored in /srv. However /srv should always exist on FHS compliant systems and should be used as the default location for such data.

Distributions must take care not to remove locally placed files in these directories without administrator permission. [20]
 
Old 08-04-2008, 07:15 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
At some of the employers I worked at, when we used the /srv directory, it was used for admin like directory structures sort of like mentioned in previous post. We used it for anything from cfengine configs to svn repositories for administrators, etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is /srv dir most used for? jchambers Linux - Newbie 2 02-20-2008 12:50 AM
Moving from Windows Srv to Linux rlocone Linux - Newbie 8 10-23-2007 02:06 PM
migrating from win2000 srv. to debian dajomu Debian 1 08-28-2005 03:28 PM
sys and srv in root basilogics Linux - Software 1 08-19-2005 09:01 PM
What is the /srv partition and do I need one? Thaidog Linux - Newbie 2 09-06-2004 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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