Determining the size of a directory in Linux is a fundamental task for managing storage space and organizing files effectively. The “du” command, short for “disk usage,” provides a straightforward way to obtain this information.
The “du” command, when executed without any arguments, displays the disk usage of the current working directory. By specifying a directory path as an argument, you can check the size of that particular directory. The output of the command is a list of directories along with their respective sizes, displayed in kilobytes (KB) by default.