(i) View file system space usage: DF
syntax Format
DF [-h] File/directory name/omit displays the file or directory where the file system disk space usage
parameter explanation:-
H Display with a more readable capacity format rendering (g/m/k), automatic selection of displayed unit size
(ii) View the capacity of the directory: Du
syntax format
du [-ahskm] file or directory name
parameter explanation -
A: Lists all files and directory capacity, because the default is only the capacity of the catalog.-
H: Displays in a more readable capacity format rendering (g/m/k), automatically selects the displayed unit size-
S: List totals, do not list each individual directory occupancy capacity
-K: Displays the instance in
MB:
1. View the current directory size
du-sh./
2. View a specified directory size
du-sh dirname
3. Display 5 maximum (minimum) directories or files in the specified directory
max:
du-sh * | sort-nr | head
min:
du-sh * | sort-n | head