简体   繁体   中英

Software configuration files, where should I put them in Linux systems?

I'm managing this open source project PM2 and I have a decision to take about where to put all configuration files.

Currently I store all these files under $HOME/.pm2/ , but some user permissions can mess up with that logic.

What is the folder that is common and exists to 100% of Arch/Debian/Ubuntu/Linux/BSD/Unix... based system, to store configuration files ?

In Linux/Unix, many programs usually keep config in /etc/ and use subfolder in /var/ for other files. See also on Wikipedia File System Hierarchy Standard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM