You can use the du
command in a terminal to find the size of a directory in Linux.
Example:
du -sh /path/to/directory
The -s
flag summarizes the directory size, and -h
displays the output in a “human-readable” format (i.e., in GB or MB, instead of blocks). Replace /path/to/directory
with the actual path to the directory you want to check.