- 论坛徽章:
- 145
|
本帖最后由 jason680 于 2012-01-09 09:39 编辑
回复 1# XQKA
'df -h' like as 'ls' command that have different output.- $ df -h
- Filesystem size used avail capacity Mounted on
- /dev/dsk/c1d0s0 96G 4.1G 91G 5% /
- /usr/lib/libc/libc_hwcap1.so.1
- 96G 4.1G 91G 5% /lib/libc.so.1
- $ df -h | awk '{print "***"$0"***"}'
- ***Filesystem size used avail capacity Mounted on***
- ***/dev/dsk/c1d0s0 96G 4.1G 91G 5% /***
- ***/usr/lib/libc/libc_hwcap1.so.1 96G 4.1G 91G 5% /lib/libc.so.1***
复制代码 $ man df
....
-h
Like -k, except that sizes are in a more human readable
format. The output consists of one line of information
for each specified file system. This information
includes the file system name, the total space allocated
in the file system, the amount of space allocated to
existing files, the total amount of space available for
the creation of new files by unprivileged users, and the
percentage of normally available space that is currently
allocated to all files on the file system. All sizes are
scaled to a human readable format, for example, 14K,
234M, 2.7G, or 3.0T. Scaling is done by repetitively
dividing by 1024.
This option overrides the -b, -e, -g, -k, -n, -t, and -V
options. This option only works on mounted filesystems
and can not be used together with -o option.
|
|