DF/DU is the command used to view disk space usage. Typically used to locate an issue with insufficient disk space.
Du view of the space used by file and directory disks
Common operations: du-h Path
If no path is taken, the default path is found.
[email protected] soft]# du-h Test
608K test/Test6
308K Test/test4
4.0K test/scf/Lib
4.0K test/scf/service/deploy/Product
4.0K test/scf/service/deploy/Info
1. command format:
du [Options] [file]
2. Command function:
Displays the disk usage space for each file and directory.
3. Command parameters:
-A or-all displays the size of individual files in the directory.
-B or-bytes displays the directory or file size, in bytes.
-C or--total displays the sum of all directories or files in addition to the size of individual directories or files.
-K or--kilobytes output in kilobytes (1024bytes).
-M or--megabytes is output in megabytes.
-S or--summarize displays only the totals, listing only the last added total value.
-H or--human-readable in k,m,g to improve the readability of the information.
-X or--one-file-xystem the file system at the beginning of the processing, if any other different file system directories are skipped.
-l< the source file size of the symbolic link specified in the Symbolic link > or--dereference< symbolic link > Display option.
-S or--separate-dirs displays the size of individual directories without the size of their subdirectories.
-x< file > or--exclude-from=< file > in < file > specify directory or file.
--exclude=< directory or File > skip the specified directory or file.
-D or--dereference-args displays the source file size for the specified symbolic link.
-H or--si is the same as the-h parameter, but the k,m,g is converted to 1000 units.
-L or--count-links duplicates the hardware-linked files.
Logging Linux Commands--DF/DU