du is a disk usage command allows you to easily know file and directory sizes, also you can view file and directory sizes decreasing starting by biggest file, otherwise increasing by smallest file.
Here’re a few basic du commands frequently used.
du –all shows all files and directories included in currently opening directory.
du –human-readable views file and directory sizes with readable by human in KB, MB, and GB.
du –summarize display only a total for each argument.
du -separate-dirs command don’t include sub-directories sizes.
Shows the last time modifications for each file, directory and sub-directories as well.
Check more du commands by typing
Few du advanced commands
Search current directory and sub-directories for biggest files
Shows file, directory and sub-directory sizes including hidden files with increase sorting.
Shows file, directory and sub-directory sizes including hidden files with decrease sorting.
include -h for viewing files with human readable file and directory sizes.
du command more resources