Skip to content

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.

Notifications You must be signed in to change notification settings

ArijSaaleh/linux-disk-space-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/ArijSaaleh/linux-disk-space-analyzer.git
  2. Navigate to the project directory:

    cd linux-disk-space-analyzer
  3. Run the script:

    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

License

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages