- 论坛徽章:
- 0
|
为什么df -k和du-k的结果有这么大的区别?
The du command displays the number of blocks used for files. If the File parameter specified is actually a directory, all files within the directory are reported on. If no File parameter is provided, the du command uses the files in the current directory.
Specifying
the -k flag calculates the block count in 1024-byte units.
he df command displays information about total space and available space on a
file system. The FileSystem parameter specifies the name of the device on which
the file system resides, the directory on which the file system is mounted, or
the relative path name of a file system. The File parameter specifies a file or
a directory that is not a mount point. If the File parameter is specified, the
df command displays information for the file system on which the file or
directory resides. If you do not specify the FileSystem or File parameter, the
df command displays information for all currently mounted file systems. File
system statistics are displayed in units of 512-byte blocks by default. |
|