Metrics Engine Documentation Index
Command-Line Tool Reference Home

sum-file-sizes

Description
Examples
Arguments

Description

Calculate the sum of the sizes for a set of files.

This tool is used to find the sum of the sizes of one or more files. If any of the files specified is a directory then it will be recursively processed.

Examples

Report the total size in bytes of all files and directories below the current working directory:
sum-file-sizes .


Report the total size in megabytes of all files in the db and logs directories:
sum-file-sizes --megabytes db logs

Arguments

-V
--version

Description Display Metrics Engine version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

-k
--kilobytes

Description Display the total size in kilobytes instead of bytes

-m
--megabytes

Description Display the total size in megabytes instead of bytes

-g
--gigabytes

Description Display the total size in gigabytes instead of bytes