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
41
votes
3 answers

Where to place Unix Domain (AF_UNIX) sockets' end points (files)?

Is there a convention where to place the 'files' representing the end points to Unix Domain Sockets? I tend to put them to /tmp/some-application-specific-subdir-name/, but I wonder if there is a more common place. The background is, that POSIX is…
alk
  • 69,737
  • 10
  • 105
  • 255
26
votes
2 answers

XDG Basedir directories for Windows

I have made a Racket library for convenience in accessing the XDG Basedir directories. As I want the library to be useable on Windows as well (for cross-platform programs), I have it use standard Windows directories as the defaults when the XDG…
William Hatch
  • 386
  • 3
  • 6
15
votes
1 answer

Where is the proper place to put Python virtual environments according to the Linux Filesystem Hierarchy Standard?

As the title asks, what is the technically proper location to store Python virtual environments on Linux operating systems according to the Linux FHS? Stated another way that allows for a clear answer: Is it "technically correct" to separate the…
user559633
10
votes
2 answers

How to handle configuration files with distutils to respect unixen's FHS?

Suppose we have a program called foo. If use absolute path: setup(..., data_files=[..., ('/etc', ['foo.cfg'])] ) Then foo$ python setup.py --prefix=/usr/local and we will have /etc/foo.cfg. But we should have…
weakish
  • 28,682
  • 5
  • 48
  • 60
3
votes
1 answer

Make an executable Guile program with auto-tools?

Recently started learning to use auto-tools and have been trying make a simple Guile program with it. Following this tutorial I got the program successfully compiling, with the .go file placed in %site-ccache-dir and the .scm file placed in…
3
votes
2 answers

Convention for storing bare Git repositories in home directory?

In my home directories, I usually store source code (whether as a decompressed tar ball or a Git/Subversion working copy) beneath $HOME/src slightly inspired by the FHS. I want to keep bare Git repositories separate from those. Is there any…
Tim Landscheidt
  • 1,400
  • 1
  • 15
  • 20
2
votes
0 answers

Will Docker kill FHS?

I've seen a lot of Docker images ignoring the Filesystem Hierarchy Standard (FHS). Most examples (some official) ignore the FHS. For instance, some may choose to put their binaries in /app and their data in /data, having an entrypoint.sh in the root…
G. Fiedler
  • 664
  • 4
  • 12
2
votes
1 answer

Linux: Installation directory of application installed only for current user

I have a Python application that is currently installed following Linux Filesystem Standard Hierarchy (FHS). It is installed in: /usr/bin/ (executable) /usr/lib/python2.x/site-packages/{appname}/ (Python libs) /etc/{appname}/ (conf…
Alan Evangelista
  • 2,888
  • 6
  • 35
  • 45
1
vote
1 answer

Filesystem Hierarchy Standard: Where should my package install files in Linux?

I'm looking for help understanding the FHS, particularly as it applies to software I'm developing. There seem to be nuances that neither I nor my colleagues are aware of. I'm especially confused about whether the executable binaries are considered…
Matt Tsōnto
  • 1,518
  • 1
  • 15
  • 30
1
vote
2 answers

What is the appropriate directory to store scripts and their output?

What is the most appropriate folder to store both scripts and their output (some txt files) on linux os? The scripts and their directory need to have 755 permission. Is there an appropriate directory, that already exists, for that purpose or where…
Taserface
  • 93
  • 2
  • 13
1
vote
0 answers

Convincing CPack to properly install shared read-only data under /usr/share

I am configuring CMake/CPack to install an application which ships with a few read-only shared data files. My understanding is that according to the FHS, such files should be stored under /usr/share, ideally within an application-specific directory…
arclight
  • 1,608
  • 1
  • 15
  • 19
1
vote
1 answer

Is there a Linux standard structure for "install" directories?

I want to release a small software package, but I'm not sure how to structure the release directory. Is there a Linux standard out there that specifies how to name of each directory in my release folder and what to put in them (or not put)? For…
KlingonJoe
  • 815
  • 8
  • 17
1
vote
2 answers

What does 'local' mean?

Linux has /usr/local and ~/.local (for gnome and Ubuntu). So what does "local" mean? What is the 'remote' which contrasts with this 'local'? Does it have anything to do with networks where all the computers share the same system files?
Cedar
  • 748
  • 6
  • 21
1
vote
2 answers

Where should run-time unix sockets live on Linux?

I have an application that creates a lot of unix sockets to interact with all the processes it spawns at run time. I thought /run/appname would be a good place for them to live, since from what I've understood, /run should be used for information…
user1273684
  • 1,559
  • 15
  • 24
1
vote
1 answer

Conform with File Hierarchy Standard on Linux: where to put binary examples for a library?

I am creating a debian package for a library and would like to install binary samples. I was thinking to put them under /usr/share/libname, but lintian complains (arch-dependent-file-in-usr-share). According FHS this correct, but where can put those…
Dennis Guse
  • 883
  • 10
  • 34
1
2