Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

*nix configuration file storage convention?

Might be a candidate for SuperUser, but thought I'd try here first as the question came up for a programming project.

Is there a *nix (targeting Solaris, Linux, and OS X) convention for where system-wide (updateable by all users) configuration information should be stored by an application?

like image 543
Brian Knoblauch Avatar asked Jan 17 '11 20:01

Brian Knoblauch


People also ask

Where is nix config file?

By default Nix reads settings from the following places: The system-wide configuration file sysconfdir/nix/nix. conf (i.e. /etc/nix/nix. conf on most systems), or $NIX_CONF_DIR/nix.

How are system configuration files stored in Linux OS?

The vast majority of Linux config files can be found in the /etc/ directory or a sub-directory. Most of the time these configuration files will be edited through the command line, so get comfortable with applications like Nano or Vi.

Which directory is used to store configuration files in Linux?

d directory holds the configuration for kernel module settings and the sysctl. d directory contains kernel tuning settings. These settings may only be needed on some systems, or may require hardware-specific settings.


1 Answers

Mostly configuration information stored in the /etc/<app name> folder or if it is a user specific configuration it is usually stored in the ~/.<app name> folder.

like image 147
Elalfer Avatar answered Sep 29 '22 12:09

Elalfer