harmony 鸿蒙statfs

  • 2022-08-09
  • 浏览 (635)

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

harmony 鸿蒙Kernel Coding Specification

harmony 鸿蒙Standard Libraries

harmony 鸿蒙Interrupt Management

harmony 鸿蒙Event

harmony 鸿蒙Mutex

harmony 鸿蒙Queue

harmony 鸿蒙Semaphore

harmony 鸿蒙Doubly Linked List

harmony 鸿蒙Memory Management

0  赞