HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

b
bdf(1M) bdf(1M)
NAME
bdf - report number of free disk blocks (Berkeley version)
SYNOPSIS
/usr/bin/bdf [-b][-i][
-l][-s][-t type [filesystemfile] ... ]
DESCRIPTION
The
bdf command displays the amount of free disk space available either on the specified filesystem
(
/dev/dsk/c0d0s0
, for example) or on the file system in which the specified file (such as
$HOME), is
contained. If no file system is specified, the free space on all of the normally mounted file systems is
printed. The reported numbers are in kilobytes.
Options
The
bdf command recognizes the following options:
-b Display information regarding file system swapping.
-i Report the number of used and free inodes.
-l Display information for local file systems only (for example, HFS and CDFS file sys-
tems).
-s Do not sync the file system data on the disk before reporting the usage.
-t type Report on the file systems of a given type (for example, nfs or
hfs).
RETURN VALUE
The
bdf command returns 0 on success (able to get status on all file systems), or returns 1 on failure
(unable to get status on one or more file systems).
WARNINGS
If file system names are too long, the output for a given entry is displayed on two lines.
The bdf command does not account for any disk space reserved for swap space, or used for the
HFS boot
block (8 KB, 1 per file system),
HFS superblocks (8 KB each, 1 per disk cylinder),
HFS cylinder group blocks
(1 KB - 8 KB each, 1 per cylinder group), and inodes (currently 128 bytes reserved for each inode). Non-
HFS file systems may have other items not accounted for by this command.
AUTHOR
bdf was developed by the University of California, Berkeley.
FILES
/etc/fstab Static information about the file systems.
/etc/mnttab Mounted file system table.
/dev/dsk/* File system devices.
SEE ALSO
df(1M), fstab(4), mnttab(4).
102 Hewlett-Packard Company 1 HP-UX 11i Version 2: December 2007 Update