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
62 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 ...
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 ...
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 ...
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.)
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 ...
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 ...
5 votes
1 answer
270 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 ...
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 ...
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 /...
1 vote
1 answer
477 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 ...
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 ...
6 votes
1 answer
993 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". ...
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 ...
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 ...
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 ...
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.
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 ...
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?
2 votes
1 answer
348 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 ...