预计阅读本页时间:-
Where Configurations Live
Prev Chapter�燙onfiguration Next
Where Configurations Live
广告:个人专属 VPN,独立 IP,无限流量,多机房切换,还可以屏蔽广告和恶意软件,每月最低仅 5 美元
Classically, a Unix program can look for control information in five places in its startup-time environment:
Run-control files under /etc (or at fixed location elsewhere in systemland).
System-set environment variables.
Run-control files (or ‘dotfiles’) in the user's home directory. (See Chapter�a> for a discussion of this important concept, if it is unfamiliar.)
User-set environment variables.
Switches and arguments passed to the program on the command line that invoked it.
We'll discuss each of these places in more detail, then examine some case studies.
What Should Be Configurable? Home 燫un-Control Files