当前位置:网站首页>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/
边栏推荐
- 笔试题大疆08.07
- AcWing 272. 最长公共上升子序列
- Do you know the basic process and use case design method of interface testing?
- 少年成就黑客,需要这些技能
- 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
- 机器学习(二)线性回归
- oracle数据库中列转行,列会有变化
- 【Day_13 0509】▲跳石板
- TF generates (feature, label) set through feature and label, tf.data.Dataset.from_tensor_slices
- The softmax function is used in TF;
猜你喜欢
支持各种文件快速重命名最简单的小技巧
我的创作纪念日丨感恩这365天来有你相伴,不忘初心,各自精彩
1096 big beautiful numbers (15 points)
基于微信小程序的租房小程序
Machine Learning Summary (2)
1.1-回归
Redis 只会用缓存?20种妙用让同事直呼牛X(荣耀典藏版)
excel 透视表 值显示内容 不显示计数
3.1-分类-概率生成模型
About # SQL problem: how to set the following data by commas into multiple lines, in the form of column display
随机推荐
进阶-指针
场地预订系统,帮助场馆提高坪效
《剑指offer》题解——week3(持续更新)
[C语言] sscanf如何实现sscanf_s?
1071 Small Gamble (15 points)
The most complete documentation on Excel's implementation of grouped summation
Active users of mobile banking grew rapidly in June, hitting a half-year high
3.1-Classification-probabilistic generative model
用 Antlr 重构脚本解释器
matrix multiplication in tf
1051 Multiplication of Complex Numbers (15 points)
借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
go sqlx 包
【LeetCode】Summary of linked list problems
如何仅更改 QGroupBox 标题的字体?
1061 True or False (15 points)
老干妈创始人陶华碧现身直播间,70岁“国民女神”拥抱直播电商
美术2.4 UV原理基础
oracle数据库中列转行,列会有变化
The easiest trick to support quick renaming of various files