Questions tagged [fhs]

The Filesystem Hierarchy Standard defines the standard directory layout of a Linux system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

.NET runtime/sdk installation on Debian production server

I have dedicated Debian container on Proxmox to run ASP.NET Web API application. It requires .NET runtime (or SDK that contains runtime), like Java. I have no problem to make it work, but I'm ...
Kamil's user avatar
  • 157
5 votes
2 answers
5k views

Why is the root home directory, /root not in /home? (looking for reasons other than /home is mounted on a different drive)

i know that one reason for /root not being in /home is that usually /home is mounted on a different disk and if it were to fail, we still want root to be accessible. What are some of the other reasons ...
dor's user avatar
  • 87
1 vote
1 answer
32 views

Under which folder should I persist a non-user-specific DB?

Where is it customary/appropriate for me to persist my DB? Should it be: Under /var/lib/ ? Under /var/db/ ? Elsewhere? (I'm assuming it doesn't matter which DB it is.)
einpoklum's user avatar
  • 1,722
101 votes
4 answers
30k views

Is there a directory equivalent of /dev/null in Linux?

When configuring an application, you can often use /dev/null as config file if you want the application to read an empty file. But, if the application reads a list of files from a directory, you ...
roelvanmeer's user avatar
  • 1,794
3 votes
1 answer
2k views

/var/ or /srv/ for websites [closed]

I know it's not the first question on that subject but my purpose is slightly more specific. I've read many discussions about it and what I understand is that semantically, according to FHS, websites ...
sajran's user avatar
  • 171
5 votes
1 answer
269 views

Is there a standard for exported filesystem location (Filesystem Hierarchy Standard)

I have seen different approaches in different distros, where servers are placed. I saw /srv where then there was a folder for each server /srv/ftp, /srv/www etc. Earlier used /opt. I have now ...
thst's user avatar
  • 185
1 vote
1 answer
474 views

Where to install custom apps and data following FHS

This is something that has always confused me. Where do I install custom apps that are written by my team? Apps like report runners, queue->database writers, etc. i.e. the apps that are the reason the ...
Sarge's user avatar
  • 189
2 votes
1 answer
2k views

Recommended home directory for nagios user

What is the recommended home directory for the nagios user (FHS)? When I monitor a linux system, I have to create a user for ssh-key-based login and for grating him the needed rights via sudoers. I ...
Randy's user avatar
  • 200
6 votes
1 answer
990 views

Correct usage of /srv on debian systems

I'm a bit confused about what goes inside /srv and looking for good practices about its usage on Debian. Acording to the FHS: "/srv contains site-specific data which is served by this system". ...
L. Lopez's user avatar
11 votes
5 answers
2k views

Why does software install itself in /usr/lib?

I have been using Linux servers for years now and I keep on being confused by the Filesystem Hierarchy Standard. Usually, I can live with the confusion. But now that I am developing my own software ...
Eric MORAND's user avatar
5 votes
2 answers
2k views

/var/lib for holding served data, why?

Acording to the FHS, the directories /lib and /usr/lib are both for libraries (libraries used in /sbin and user libraries, respectively). But what about the /var/lib folder? Following the same logic ...
Bruno Polaco's user avatar
2 votes
2 answers
2k views

Should logs for /opt go in /var/opt or /var/log?

A package I'm using (Graphite) insists on installing into /opt/graphite. Should logs go into /var/opt/graphite/log, or /var/log/graphite? Presume we want to be as FHS as possible. I'm using CentOS ...
elliot42's user avatar
  • 185
4 votes
3 answers
384 views

Where should an SSH keyfile be stored to be FHS compliant?

I've been reading the FHS specification on http://www.pathname.com/fhs/pub/fhs-2.3.html to figure out where a (private) SSH keyfile should be stored that will be used for a VPS administration panel I ...
Sven Slootweg's user avatar
7 votes
2 answers
6k views

What is the difference between /var/mail/XXX and /var/spool/mail/XXX

I look exactly the same : But What makes me suprised is that they are synchronous.
爱国者's user avatar
  • 173
16 votes
2 answers
12k views

/var/opt/ vs /var/lib

I can't decipher the deciding factor on where to place "variable program data" for an /opt installed package. On one hand the FHS says to place all variable data that dictates a program's state into /...
fthinker's user avatar
  • 316
0 votes
1 answer
1k views

I'm setting up Ubuntu Server 10.04 LTS, where exactly should all my installs go?

I'm a bit of a noob on setting up web servers, but I want to do it right. I'm using Ubuntu Server 10.04 LTS on a VPS and it's currently a fresh install, with a root user setup and SSH enabled. Aside ...
user avatar
1 vote
2 answers
173 views

Correct directory for Oracle installation on Linux

What is the best directory to install Oracle on Linux box? /srv, /opt, /usr/local?
user avatar
2 votes
4 answers
810 views

Where to place web content for multiple domains on a RHEL based server?

I'm setting up a RHEL web server which will host static and dynamic content for several domain names. Multiple users will update files by SSH and SFTP. Where should the files for each domain name be ...
user avatar
2 votes
1 answer
347 views

Extending the Filesystem Hierarchy Standard (FHS) to house Enterprise Software

I'm not sure how many people would be interested in this, but I think if you have more than a few hundred servers, it starts becoming an issue. An applications team/middleware sends a request that ...
khosrow's user avatar
  • 4,173