.__ .__
| | _____|__|_______ ____
| | / ___/ \___ // __ \
| |__\___ \| |/ /\ ___/
|____/____ >__/_____ \\___ >
\/ \/ \/
A Python CLI tool to calculate and display the total size of files and directories in Linux.
- Calculates the total size of files and directories recursively.
- Provides a clear, human-readable output of sizes in bytes, KB, MB, and GB.
- Supports both file and directory size reporting.
- Simple, fast, and lightweight (No External Dependency).
lsize <path>Example:
lsize /home/user/documentsThis will display the total size of all files and subdirectories under the specified path.
Requires python 3.13.5 or above.git clone https://github.com/thelearn-tech/lsize
cd lsize
chmod +x install.sh
./install.shHere is the structure of a dir test and the file names correspond to the file sizes.
Running lsize on this dir.
Contributions are welcome! Please open an issue or submit a pull request.

