当前位置:网站首页>Filesystem Hierarchy Standard
Filesystem Hierarchy Standard
2022-08-11 08:08:00 【OopspoO】
Filesystem Hierarchy Standard
文件系统层次结构标准(英语:Filesystem Hierarchy Standard,FHS)定义了Linux操作系统中的主要目录及目录内容。FHS由Linux基金会维护。 当前版本为3.0版,于2015年发布。
文档内容不多,英文内容差不多50页,可以很快阅读一遍。
先看下摘要:
This standard consists of a set of requirements and guidelines for file and directory placement under UNIX-like
operating systems. The guidelines are intended to support interoperability of applications, system administration tools,
development tools, and scripts as well as greater uniformity of documentation for these systems.
大体意思就是说要为UNIX-like的系统确定一个文件和目录位置的规范。
接下来文章分成以下几部分:
- 根文件系统——The Root Filesystem
规定了根目录下需要有那些目录文件。
下面的目录(无论是不是链接)都需要在根目录下存在:
目录 | 描述 |
---|---|
bin | Essential command binaries |
boot | Static files of the boot loader |
dev | Device files |
etc | Host-specific system configuration |
lib | Essential shared libraries and kernel modules |
media | Mount point for removable media |
mnt | Mount point for mounting a filesystem temporarily |
opt | Add-on application software packages |
run | Data relevant to running processes |
sbin | Essential system binaries |
srv | Data for services provided by this system |
tmp | Temporary files |
usr | Secondary hierarchy |
var | Variable data |
/usr目录结构——The /usr Hierarchy
规定了usr目录下需要有哪些文件。
需要注意的是**/usr不是user的缩写,其实usr是Unix Software Resource的缩写, 也就是Unix操作系统软件资源所放置的目录,而不是用户的数据;所有系统默认的软件都会放置到/usr, 系统安装完时,这个目录会占用最多的硬盘容量**/var目录结构——The /var Hierarchy
规定了var目录下需要有哪些文件.
/var 包含系统一般运行时要改变的数据。通常这些数据所在的目录的大小是要经常变化或扩充的。操作系统其他的一些特定组件
reference
https://refspecs.linuxfoundation.org/
边栏推荐
- matplotlib
- My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
- 欢迎加入sumarua网络安全交流社区
- 【415. 字符串相加】
- 【云原生】云原生在网络安全领域的应用
- 1101 How many times B is A (15 points)
- 分布式锁-Redission - 缓存一致性解决
- 笔试题大疆08.07
- 2022 China Soft Drink Market Insights
- 借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
猜你喜欢
少年成就黑客,需要这些技能
Pico neo3 Unity Packaging Settings
[C语言] sscanf如何实现sscanf_s?
Redis source code: how to view the Redis source code, the order of viewing the Redis source code, the sequence of the source code from the external data structure of Redis to the internal data structu
Mysql JSON对象和JSON数组查询
3.2-分类-Logistic回归
初级软件测试工程师笔试试题,你知道答案吗?
1106 2019 Sequence (15 points)
Item 2 - Annual Income Judgment
1101 How many times B is A (15 points)
随机推荐
【LeetCode】链表题解汇总
matrix multiplication in tf
Kotlin算法入门计算质因数
1081 Check Password (15 points)
零基础SQL教程: 主键、外键和索引 04
剑指offer专项突击版第26天
零基础SQL教程: 基础查询 05
租房小程序
【C语言】每日一题,求水仙花数,求变种水仙花数
magical_spider远程采集方案
3.1-分类-概率生成模型
Machine Learning Summary (2)
装饰器模式:Swift 实现
Break pad source code compilation--refer to the summary of the big blogger
excel 透视表 值显示内容 不显示计数
【43. 字符串相乘】
项目2-年收入判断
Hibernate 的 Session 缓存相关操作
为什么会没有内存了呢
高德能力API