• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# statfs
2
3
4## Command Function<a name="section153921657152613"></a>
5
6This command is used to print information about a file system, such as the type, total size, and available size.
7
8## Syntax<a name="section135391102717"></a>
9
10statfs \[_directory_\]
11
12## Parameters<a name="section074312314279"></a>
13
14**Table  1**  Parameter description
15
16<a name="table1597mcpsimp"></a>
17<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><strong id="b156942710240"><a name="b156942710240"></a><a name="b156942710240"></a>Parameter</strong></p>
18</th>
19<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><strong id="b1759110293240"><a name="b1759110293240"></a><a name="b1759110293240"></a>Description</strong></p>
20</th>
21<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><strong id="b10264183019242"><a name="b10264183019242"></a><a name="b10264183019242"></a>Value Range</strong></p>
22</th>
23</tr>
24</thead>
25<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>
26</td>
27<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>Specifies the file system directory.</p>
28</td>
29<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>The file system must exist and support the <strong id="b1635148125717"><a name="b1635148125717"></a><a name="b1635148125717"></a>statfs</strong> command. The supported file systems include JFFS2, FAT, and NFS.</p>
30</td>
31</tr>
32</tbody>
33</table>
34
35## Usage<a name="section133816772712"></a>
36
37The printed information varies depending on the file system.
38
39## Example<a name="section526149182717"></a>
40
41The following uses the NFS as an example:
42
43Run  **statfs /nfs**.
44
45**statfs**  command output
46
47```
48OHOS # statfs ./nfs
49statfs got:
50 f_type     = 26985
51 cluster_size   = 512
52 total_clusters = 1579575176
53 free_clusters  = 499254808
54 avail_clusters = 499254808
55 f_namelen    = 255
56./nfs
57 total size: 808742490112 Bytes
58 free  size: 255618461696 Bytes
59```
60
61