• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# statfs<a name="ZH-CN_TOPIC_0000001179965853"></a>
2
3-   [命令功能](#section153921657152613)
4-   [命令格式](#section135391102717)
5-   [参数说明](#section074312314279)
6-   [使用指南](#section133816772712)
7-   [使用实例](#section526149182717)
8
9## 命令功能<a name="section153921657152613"></a>
10
11statfs命令用来打印文件系统的信息,如该文件系统类型、总大小、可用大小等信息。
12
13## 命令格式<a name="section135391102717"></a>
14
15statfs \[_directory_\]
16
17## 参数说明<a name="section074312314279"></a>
18
19**表 1**  参数说明
20
21<a name="table1597mcpsimp"></a>
22<table><thead align="left"><tr id="row1603mcpsimp"><th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.1"><p id="p1605mcpsimp"><a name="p1605mcpsimp"></a><a name="p1605mcpsimp"></a>参数</p>
23</th>
24<th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.2"><p id="p1607mcpsimp"><a name="p1607mcpsimp"></a><a name="p1607mcpsimp"></a>参数说明</p>
25</th>
26<th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.3"><p id="p1609mcpsimp"><a name="p1609mcpsimp"></a><a name="p1609mcpsimp"></a>取值范围</p>
27</th>
28</tr>
29</thead>
30<tbody><tr id="row1610mcpsimp"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.1 "><p id="p1612mcpsimp"><a name="p1612mcpsimp"></a><a name="p1612mcpsimp"></a>directory</p>
31</td>
32<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.2 "><p id="p1615mcpsimp"><a name="p1615mcpsimp"></a><a name="p1615mcpsimp"></a>文件系统的路径。</p>
33</td>
34<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p1617mcpsimp"><a name="p1617mcpsimp"></a><a name="p1617mcpsimp"></a>必须是存在的文件系统,并且其支持statfs命令,当前支持的文件系统有:JFFS2,FAT,NFS。</p>
35</td>
36</tr>
37</tbody>
38</table>
39
40## 使用指南<a name="section133816772712"></a>
41
42打印信息因文件系统而异。
43
44## 使用实例<a name="section526149182717"></a>
45
46以nfs文件系统为例:
47
48statfs /nfs
49
50**图 1**  statfs输出说明<a name="fig1810654276"></a>
51![](figure/statfs输出说明.png "statfs输出说明")
52
53