# 文件系统

## ext3文件系统特点

* ext3是一种日志式文件系统
* 最长文件名：**255字节**
* 最大文件大小：16GB – 64T（取决于块尺寸）
* 最大卷容量： 2TiB – 32TiB
* 最大文件数量：可变

## XFS文件系统特点

* XFS是一种日志式文件系统,最早于1993年
* 最长文件名：255字节
* 最大文件大小：8 exbibytes 减1字节
* 最大卷容量： 16 exabytes
* 最大文件数量：可变
* 已经在CenOS7上作为默认文件系统

## Linux文件目录

![](blob:https%3A//www.gitbook.com/0418e0e8-d8b8-4898-a24f-7c9442ae2795)

## Linux文件

* 定义：存储在某种设备中的一段数据流
* **在Linux中，几乎一切都是文件**
* 文件类型：普通文件, 链接文件, 目录文件, 设备文件
* 设备文件：/dev/tty, /dev/null , /dev/zero
* **每个文件对应一个 “inode” 数据**

## **inode包含内容**

* 文件的字节数
* 文件的uid和gid
* 文件的读、写、执行权限
* 文件的时间戳: ctime，mtime，atime
* 链接数：有多少文件名指向这个inode
* 文件数据block的位置

更多资料查看:

[linux 磁盘与文件系统管理](https://www.gitbook.com/book/xiaoxiami/phper/edit#)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://phper.shujuwajue.com/phpwen-jian-bian-cheng/wen-jian-xi-tong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
