For Linux users and administrators in a server-like environment, knowing the exact size of a directory tree through the system terminal is important. It will help you compare file directory properties and determine their storage allocation when you want to copy or move these directories to a different location.
du is an abbreviation for disk usage. This command is case-sensitive. Be specific in the use of uppercase and lowercase naming conventions while referencing directory names.
Let us look at the various ways of implementing
du to list directory sizes in Linux.