Location of ini/config files in linux/unix?

前端 未结 7 1093
自闭症患者
自闭症患者 2020-12-04 06:05

Two questions, really:

  1. Is there a standard/convention regarding the placement on configuration files?

    For system or quasi-system programs they see

7条回答
  •  囚心锁ツ
    2020-12-04 06:43

    1. Generally system/global config is stored somewhere under /etc.
    2. User-specific config is stored in the user's home directory, often as a hidden file, sometimes as a hidden directory containing non-hidden files (and possibly more subdirectories).

    Generally speaking, command line options will override environment variables which will override user defaults which will override system defaults.

提交回复
热议问题