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.
- Host: GitHub
- URL: https://github.com/arijsaaleh/linux-disk-space-analyzer
- Owner: ArijSaaleh
- Created: 2023-08-30T13:45:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T14:36:40.000Z (over 2 years ago)
- Last Synced: 2025-02-07T00:17:35.541Z (12 months ago)
- Topics: custom-command, custom-linux-command, linux, python, python-script, script
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

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