statfs

This obtains status information about a file system.

statfs path ?item?|?stat arrayvar?

These keys are used to identify data items:

  • version is the version of status data, currently 0.
  • type is the type of info, currently 0.
  • bsize is the fundamental file system block size.
  • blocks is the total data blocks in the file system.
  • bfree is the free blocks in the file system.
  • bavail is the free blocks available to non-root users.
  • files is the total file nodes in the file system.
  • ffree is the number of free file nodes.
  • fname is the file system name. This is the mount point. This is truncated at 6 characters.
  • fpack is the file system pack name. This is truncated at 6 characters.

If one of these keys is specified as item, then that data item is returned.

If stat arrayvar is specified, then the information is returned in the array arrrayvar. Each of the above keys indexes an element of the array containing the data.

If only path is specified, then the command returns the data as a keyed list.