du Linux command of the command df command

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/TreeShu321/article/details/101381211

Article Directory

du command

Display files or directories take up more disk space.

Format: du [option] file / directory
-h output file where the partition uses the system, for example: 10KB, 10MB, 10GB, etc.
-s entire size of the file or directory, the default is KB

Displays the current size of all files in the directory:
Here Insert Picture Description
du -SH xxx displays the total size of the directory, but does not list every file in the directory
du -sh xxx / * xxx listed under each directory and file share capacity

Find the largest footprint Linux files and directories: du -h --max-depth = 1

df command

Partition df command to view the disk, the disk space has been used, the remaining space

File -a, --all contains all 0 Blocks file system has a
file -block-size = {SIZE} using {SIZE} Blocks size
format (preset file -h, --human-readable using human-readable value without this option ...)
file -H, --si like -h, but use 1000 instead of 1024 as a unit
file -i, --inodes list inode information, not the use of block lists the
file - k, --kilobytes like --block-size = 1024
file -l, file structure --local limitations listed
file -m, --megabytes like --block-size = 1048576
file -no-sync made not sync (the default value) before information
file -P, --portability use POSIX output format
file -sync in access to information before Sync
the TYPE file -t, --type = TYPE limit listing the file system of
files -T, - print-type display in the form of a file system
file -x, --exclude-type = TYPE limit listing the file system not to show TYPE
file -v (ignored)
file -help display this help and leave the
file -version output version information and exit

Guess you like

Origin blog.csdn.net/TreeShu321/article/details/101381211