3

I am rather new to Debian file system placing convention. I see that configuration files for applications are usually stored in /etc/{application_name}/

Is this a "go-to" place when storing actual files of the application?

masegaloeh
  • 18,376
  • 10
  • 58
  • 110

3 Answers3

5

Packaged application have their own locations, typicall under /usr/ or /var/lib/, with executables (or links to them) under /bin/ or /usr/bin/

For self-compiled or self-written application, you can use /usr/local/bin/ for the executables and /usr/<appname>/ for the application itself (or its asset files).

Some more (albeit somewhat outdated) informations: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

shodanshok
  • 50,565
3

This is covered in the Debian Policy Manual. According to the section on configuration files, generally acceptable locations are /etc or /etc/{app_name}.

1

As mentioned above by shodanshok /usr/local is a good place to store an application that is not a package (deb, rpm). Hovewer, if you would rather have your app in one directory (instead of /usr/local/etc for config files, /usr/local/bin for executables), you can place it in /opt directory. This is often the directory of choice in case of apps that come with their own custom installers.