harmony 鸿蒙statfs
statfs
Command Function
This command is used to print information about a file system, such as the type, total size, and available size.
Syntax
statfs [directory]
Parameters
Table 1 Parameter description
Parameter | Description | Value Range |
---|---|---|
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. |
Usage Guidelines
The printed information varies depending on the file system.
Example
The following uses the NFS as an example:
Run statfs /nfs.
statfs command output
OHOS # statfs ./nfs
statfs got:
f_type = 26985
cluster_size = 512
total_clusters = 1579575176
free_clusters = 499254808
avail_clusters = 499254808
f_namelen = 255
./nfs
total size: 808742490112 Bytes
free size: 255618461696 Bytes
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Kernel Coding Specification
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦