Display the amount of free space in the file system

·

·

Description

df shows the amount of free space that is left on a file system. Space can have the following values:Space UsedTotal amount of space that is allocated to existing files in the file system.Space FreeTotal amount of space available in file system for the creation of new files by unprivileged users.Space ReservedSpace reserved by the system, which is not normally available to a user.Total SpaceIncludes space used, space free, and space reserved.

df measures space in units of 512-byte disk sectors. You can specify a particular file system by naming any file name on that file system. If you do not give an argument, df reports space for all mounted file systems known to the system, in the following format:

  • File system root.
  • File system name.
  • Space available and total space.The total space reported is the space in the already allocated extents (primary and any already allocated secondary extents) of the data set that holds this file system. Therefore, the total space might increase as new extents are allocated.
  • Number of free files (inodes).This number is only meaningful for file systems created using DFSMS 1.3.0 and later. For file systems created with earlier versions of DFSMS, this number is always 4 294 967 295.
  • File system status.

Tip: For zFS file systems, the df command might not provide sufficient information to indicate whether a file system is running out of space. For complete information about zFS space usage, use the zfsadm aggrinfo -long command. For more information about zfsadm aggrinfo, see zfsadm aggrinfo in z/OS File System Administration

.

Options

-kUses 1024-byte (1 KB) units instead of the default 512-byte units when reporting space information.-mUses 1048576-byte (1 MB) units instead of the default 512-byte units when reporting space information.-PLists complete information about space used, in the following order:

  • File system name
  • Total space
  • Space used.
  • Space free.
  • Percentage of space used.
  • File system root.

-SDisplays SMF accounting fields.-tDisplays total allocated file slots, in addition to the total number of free files that are already displayed.-vLists more detailed information about the file system status.

  • File system root.
  • File system name.
  • Space available and total space.
  • Number of free files (inode).
  • File system status.
  • File system type, mode bits, and device number.
  • File system mount parm data.
  • File system mount tag value.


Leave a Reply

Your email address will not be published. Required fields are marked *