System information
An Introduction to Shells in General
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 46
4+0 records out
5.3.8 df
Syntax: df [-hmk] [filesystem ...]
Print the filesystem space used and space available.
Options:
-h print sizes in human readable format (e.g., 1K 243M 2G )
-m print sizes in megabytes
-k print sizes in kilobytes(default)
Example:
$df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 8690864 8553540 137324 98% /
/dev/sda1 64216 36364 27852 57% /boot
$ df /dev/sda3
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 8690864 8553540 137324 98% /
5.3.9 dirname
Syntax: dirname [FILENAME ...]
Strips non-directory suffix from FILENAME
Example:
$ dirname /tmp/foo
/tmp
$ dirname /tmp/foo/
/tmp
5.3.10 du
Syntax: du [-lshmk] [FILE]...
Summarizes disk space used for each FILE and/or directory. Disk space is printed in units of
1024 bytes.
Options:
-l count sizes many times if hard linked
-s display only a total for each argument
-h print sizes in human readable format (e.g., 1K 243M 2G )
-m print sizes in megabytes
-k print sizes in kilobytes(default)
Example:
$du
16 ./CVS
12 ./kernel-patches/CVS
80 ./kernel-patches
12 ./tests/CVS
36 ./tests
12 ./scripts/CVS