Linux配置文件名称和数字 [英] Linux configuration files names with numbers

查看:147
本文介绍了Linux配置文件名称和数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道为什么有些工具的默认配置文件的名称中带有数字。

I just wonder why some tools have default configuration files with numbers in their names.

例如: 50-default.conf (用于rsyslog)。

For example: 50-default.conf (for rsyslog).

此数字的原因是什么?什么意思?

What's the reason for this number and what does it mean ?

推荐答案

这些数字用于配置文件的排序和优先级。即如果 10-smth.conf 20-smth.conf 中存在相同的参数配置,则后者将首先覆盖一个。

These numbers are for config file ordering and precedence. I.e. if the same parameter configuration is present in 10-smth.conf and 20-smth.conf the latter will overwrite first one.

这篇关于Linux配置文件名称和数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆