当前位置: 首页 > news >正文

Linux文件系统层级结构 - Invinc

本文总结了Linux文件系统目录的层次结构。


常见的Linux目录名称基于 Filesystem Hierarchy Standard (FHS)。许多Linux发行版都保持与FHS的兼容性。

根文件系统/

在根目录(/)中需要以下目录或指向目录的符号链接。

Directory Description
bin Essential command binaries, where many GNU user-level utilities are stored
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, where many GNU admin-level utilities are stored
srv Data for services provided by this system
tmp Temporary files
usr User directory, a secondary directory hierarchy
var Variable directory, for files that change frequently, such as log files
home User home directories (optional)
lib<qual> Alternate format essential shared libraries (optional)
root Home directory for the root user (optional)

/usr 目录结构

/usr中需要以下目录或指向目录的符号链接。

Directory Description
bin Most user commands
lib Libraries
local Local hierarchy (empty after main installation)
sbin Non-vital system binaries
share Architecture-independent data
games Games and educational binaries (optional)
include Header files included by C programs
libexec Binaries run by other programs (optional)
lib<qual> Alternate Format Libraries (optional)
src Source code (optional)

/var 目录结构

/var中需要以下目录或指向目录的符号链接。

Directory Description
cache Application cache data
lib Variable state information
local Variable data for /usr/local
lock Lock files
log Log files and directories
opt Variable data for /opt
run Data relevant to running processes
spool Application spool data
tmp Temporary files preserved between system reboots
account Process accounting logs (optional)
crash System crash dumps (optional)
games Variable game data (optional)
mail User mailbox files (optional)
yp Network Information Service (NIS) database files (optional)
http://www.jsqmd.com/news/392569/

相关文章:

  • 详细介绍:Django REST framework实现安全鉴权机制
  • Vue.js 自定义指令详解
  • NumPy 线性代数
  • HTML URL 编码
  • 《Foundation 进度条》
  • Kotlin 委托(Delegation)
  • 长上下文记忆的舒适陷阱:为什么更多记忆不等于更可靠
  • windows下右键没有通过Vscode打开
  • 【算法解析】n×m 网格中正方形与长方形数量的数学推导与高效计算(漫画解析)
  • 长上下文“记忆“的舒适陷阱:为什么更多记忆不等于更可靠
  • 2026木薯淀粉市场推荐:实力公司助力选择,宠物饲料淀粉/小苏打/玉米淀粉/水产饲料粘合剂/型煤淀粉,淀粉公司口碑推荐榜 - 品牌推荐师
  • 2026涡轮增压器市场:潍柴P10H.5实力厂家如何抉择,工程机械增压器/康明斯增压器,涡轮增压器供应商推荐排行榜 - 品牌推荐师
  • 题解:洛谷 P1115 最大子段和
  • 2026年2月,可靠IL - 6试剂盒选择秘籍公开,鸡试剂盒/鱼试剂盒/试剂盒,IL-6试剂盒供应商怎么选择 - 品牌推荐师
  • 二阶单bit量化CIFB sigma-delta调制器:简单入门电路、Simulink模型、M...
  • 毕业季必收藏!这9款AI降AIGC率工具网站亲测好用
  • 数据可视化产品设计:让大数据说话的艺术与技巧
  • Steiner 系初探
  • BISHI59 阶乘末尾非零数字
  • 聚焦2026:国内棒料机打孔实地厂家综合实力排行,数控车床加工/深孔钻加工/冷镦非标件,棒料机打孔品牌找哪家 - 品牌推荐师
  • 题解:洛谷 P1638 逛画展
  • 0基础能不能转大模型?到底怎么转?大模型实战指南:小白程序员2026年转行AI必读(收藏版)
  • 探寻2026伺服油压机口碑佳企,解锁行业新趋势,粉末压机/伺服油压机/电子压床/伺服热压机,伺服油压机企业哪个好 - 品牌推荐师
  • 小白福利!收藏这份AI大模型自学路线,带你从入门到精通(附104G免费学习资源)
  • 传感器02-激光雷达(LiDAR):解密自动驾驶的“千里眼”——激光雷达(LiDAR)全方位深度解析
  • 传感器01-相机:
  • AI技术干货|大语言模型知识大全!从入门到精通,通俗易懂!|附391页PDF文件下载
  • 2026选圣女果选果机,这些制造商别错过!小蕃茄选果机/AI无损测糖选果机/智能水果分选机,选果机实力厂家排行榜 - 品牌推荐师
  • 2026多模态大语言模型技术发展报告|附74页PDF文件下载
  • day89(2.18)——leetcode面试经典150