• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# statfs
2
3
4## Command Function
5
6This command is used to print information about a file system, such as the type, total size, and available size.
7
8
9## Syntax
10
11statfs [_directory_]
12
13
14## Parameters
15
16**Table 1** Parameter description
17
18| Parameter| Description| Value Range|
19| -------- | -------- | -------- |
20| directory | Specifies the file system directory.| The file system must exist and support the **statfs** command. The supported file systems include JFFS2, FAT, and NFS.|
21
22
23## Usage Guidelines
24
25The printed information varies depending on the file system.
26
27
28## Example
29
30The following uses the NFS as an example:
31
32Run **statfs /nfs**.
33
34**statfs** command output
35
36```
37OHOS # statfs ./nfs
38statfs got:
39 f_type     = 26985
40 cluster_size   = 512
41 total_clusters = 1579575176
42 free_clusters  = 499254808
43 avail_clusters = 499254808
44 f_namelen    = 255
45./nfs
46 total size: 808742490112 Bytes
47 free  size: 255618461696 Bytes
48```
49