An open API service indexing awesome lists of open source software.

https://github.com/arijsaaleh/linux-disk-space-analyzer

Analyze Disk Space Usage - A command-line utility in Python to analyze and visualize disk space usage within a specified directory. Identify the largest directories and files consuming disk space. This utility provides insights into your storage usage and helps you manage your data effectively.
https://github.com/arijsaaleh/linux-disk-space-analyzer

custom-command custom-linux-command linux python python-script script

Last synced: 10 months ago
JSON representation

Analyze Disk Space Usage - A command-line utility in Python to analyze and visualize disk space usage within a specified directory. Identify the largest directories and files consuming disk space. This utility provides insights into your storage usage and helps you manage your data effectively.

Awesome Lists containing this project

README

          

# Linux Disk Space Analyzer

The Linux Disk Space Analyzer is a command-line utility written in Python that allows you to analyze and visualize disk space usage within a specified directory. With this tool, you can identify the largest directories and files that are consuming disk space, helping you to manage your data effectively.

## Features

- Analyze disk space usage for a specified directory.
- Display the top N largest items (directories and files) based on size.
- User-friendly output with human-readable sizes.

## Getting Started

1. Clone this repository:
```sh
git clone https://github.com/ArijSaaleh/linux-disk-space-analyzer.git
2. Navigate to the project directory:
```sh
cd linux-disk-space-analyzer
3. Run the script:

```sh

python diskspace_analyzer.py /path/to/directory --limit N

Replace /path/to/directory with the directory you want to analyze and N with the number of largest items to display.

## Usage

usage: diskspace_analyzer.py [-h] [--limit LIMIT] directory

Analyze disk space usage.

positional arguments:
directory The directory to analyze

optional arguments:
-h, --help show this help message and exit
--limit LIMIT Limit the number of results (default: 10)
## Examples
Analyze disk space usage in the /home/user directory and display the top 5 largest items:

python diskspace_analyzer.py /home/user --limit 5

![Screenshot](result.png)

## License

This project is licensed under the MIT License. See the LICENSE file for details.