Questions tagged [fhs]

The Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of a UNIX system. It has been made popular by its use in Linux distributions, but it is used by other UNIX variants as well. The Linux Standard Base (LSB) refers to it as a standard.

The Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of a UNIX system. It has been made popular by its use in Linux distributions, but it is used by other UNIX variants as well. The Linux Standard Base (LSB) refers to it as a standard.

For the detailed speceifiactions please read here and for details on the maintainers please read here

24 questions
1
vote
1 answer

Where to securely place files needed by PHP in Linux filesystem (according to FHS)

I have a PHP script running on my LAMP server that requires certain files in order to produce HTML content. The script is publicly accessible (i.e. http://example.com/script.php) but the files required by the script must secured. I could probably…
David Jones
  • 10,117
  • 28
  • 91
  • 139
0
votes
2 answers

Where to place app config/logs in container

I've got a python package running in a container. Is it best practice to install it in /opt/myapp within the container? Should the logs go in /var/opt/myapp? Should the config files go in /etc/opt/myapp? Is anyone recommending writing logs and…
jsstuball
  • 4,104
  • 7
  • 33
  • 63
0
votes
0 answers

Getting the correct /usr/libXX folder for the current binary architecture

I am trying to find from my binary (which is supposed to be able to run on any distro), the canonical path to system libraries for a given distro / architecture. Precisely, I am trying to load VST plug-ins which are shared objects which all distros…
Jean-Michaël Celerier
  • 7,412
  • 3
  • 54
  • 75
0
votes
1 answer

When should I install a library to lib/ , and when to, say, lib/x86_64-linux-gnu?

I've compiled a static C or C++ library, obtaining a libfoo.a. I want to decide where it should be installed after having been built. Never mind what build/installation mechanism I'm using - this is a question of principle. Now, on the installation…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
2 answers

saving jupyter notebook/python files on ubuntu 18.04.1 LTS

I have a jupyter notebook with python code and am wondering if it needs to go to a specific file location in Ubuntu? Is there a best practice as to where to put it? Does it not matter? For example, I place my html/css code in /var/www/html in…
Nelly Yuki
  • 399
  • 1
  • 4
  • 16
0
votes
1 answer

Platform-independent directory

Does ASP.NET Core offer any platform-independent way to access standard paths, such as where data or configure files are supposed to be saved? Modules such as Qt's QStandardPaths are very helpful to prepare Qt applications to be deployed in a…
RAM
  • 2,257
  • 2
  • 19
  • 41
0
votes
1 answer

Why does FHS have a usr directory

It appears you can put all you need in /bin so why do we bother with the /usr/bin directory?
Milktrader
  • 9,278
  • 12
  • 51
  • 69
0
votes
1 answer

In Debian, where in the filesystem would a daemon provide dynamic measurement results?

For a diploma thesis, I am developing a Linux daemon that runs on Debian and is also Debian-packaged for easy administration. It reads various measurement results via I²C. The results shall be shown on a website. In Debian, where in the filesystem…
soelderer
  • 35
  • 6
0
votes
1 answer

Where to place ZeroMQ sockets' end point (files)?

As answered to this question, according to the FHS, Unix Domain (AF_UNIX) sockets' should be placed under /var/run What about ZeroMQ sockets? Where should to place them? Thanks
Michael
  • 3,206
  • 5
  • 26
  • 44
1
2