Skip to main content

Find largest files and directories

Project description

duhs

Find the largest files and directories. A cross-platform CLI tool with progress bars and color-coded output.

Installation

pip install duhs

Or install from source:

git clone https://github.com/beantownbytes/duhs.git
cd duhs
pip install .

Usage

# Find largest files in current directory
duhs files

# Find largest directories
duhs dirs

# Top 20 largest files in /var
duhs files -n 20 /var

# Directories 2 levels deep
duhs dirs -d 2

# Exclude common junk (.git, node_modules, __pycache__, etc.)
duhs files -x

# Only show files >= 100MB
duhs files -m 100M

# JSON output for scripting
duhs files --json

Commands

duhs files [DIRECTORY]

Find the largest files in a directory.

Option Description
-n, --number N Number of results (default: 10)
-a, --all Show all results
-e, --exclude PAT Exclude pattern (repeatable)
-x, --exclude-common Exclude .git, node_modules, pycache, etc.
-m, --min-size SIZE Minimum size (e.g., 1M, 500K, 1G)
-j, --json Output as JSON
--no-progress Disable progress bar

duhs dirs [DIRECTORY]

Find the largest directories.

Option Description
-n, --number N Number of results (default: 10)
-a, --all Show all results
-d, --depth N Directory depth (default: 1)
-e, --exclude PAT Exclude pattern (repeatable)
-x, --exclude-common Exclude .git, node_modules, pycache, etc.
-m, --min-size SIZE Minimum size (e.g., 1M, 500K, 1G)
-j, --json Output as JSON
--no-progress Disable progress bar

Features

  • Progress bar with real-time file count
  • Color-coded output (GB=red, MB=yellow, KB=cyan)
  • Accurate disk usage (not apparent size) on macOS/Linux
  • Cross-platform (macOS, Linux, Windows)
  • JSON output for scripting

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duhs-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duhs-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file duhs-0.1.1.tar.gz.

File metadata

  • Download URL: duhs-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for duhs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a18de404acd593739e40820b7e9a28e048e0d2953b3a17f1567198c2070992d
MD5 09a4975189328444ca538010a5ca154d
BLAKE2b-256 e4d647e6dfad6c7481acbf712f135ed27370b39562d88438bfb186308822250a

See more details on using hashes here.

Provenance

The following attestation bundles were made for duhs-0.1.1.tar.gz:

Publisher: publish.yml on beantownbytes/duhs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file duhs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: duhs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for duhs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ac215a1db1be1017cc8ceb4c0fa4ae759f5fc9d0371812ea4fc1c6f756bb5e
MD5 c15dcf40dca220047df7ce062db98878
BLAKE2b-256 099f1723c0fd21764e726486184924c4e43dbe3177cf973c5640c9653c417de4

See more details on using hashes here.

Provenance

The following attestation bundles were made for duhs-0.1.1-py3-none-any.whl:

Publisher: publish.yml on beantownbytes/duhs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page