当前位置:网站首页>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/
边栏推荐
- go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...
- 1101 How many times B is A (15 points)
- Do you know the basic process and use case design method of interface testing?
- Kotlin算法入门求回文数算法优化一
- 分布式锁-Redission - 缓存一致性解决
- 【实战系列】OpenApi设计规范
- 几何EX3 功夫牛宣布停售,入门级纯电产品为何总成弃子
- matrix multiplication in tf
- The growth path of a 40W test engineer with an annual salary, which stage are you in?
- Pico neo3 Unity Packaging Settings
猜你喜欢

1071 Small Gamble (15 points)

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

Square, multi-power, square root calculation in Tf

Redis source code-String: Redis String command, Redis String storage principle, three encoding types of Redis string, Redis String SDS source code analysis, Redis String application scenarios

go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...

FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验
2.1-梯度下降

关于架构的认知

查找最新人员工资和上上次人员工资的变动情况

研发了 5 年的时序数据库,到底要解决什么问题?
随机推荐
Square, multi-power, square root calculation in Tf
Kotlin算法入门求回文数数算法优化二数字生成规则
Decrement operation in tf; tf.assign_sub()
借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹
【C语言】每日一题,求水仙花数,求变种水仙花数
查询跟踪快递单号物流,智能分析物流中转有延误的单号
零基础SQL教程: 基础查询 05
1071 Small Gamble (15 points)
快速幂,逆元的求解
string类接口介绍及应用
用 Antlr 重构脚本解释器
Conditional statements in TF; where()
选择收银系统主要看哪些方面?
3.2-分类-Logistic回归
如何仅更改 QGroupBox 标题的字体?
magical_spider远程采集方案
1081 Check Password (15 points)
欧拉函数(用欧拉筛法求欧拉函数)
场地预订系统,帮助场馆提高坪效