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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a18de404acd593739e40820b7e9a28e048e0d2953b3a17f1567198c2070992d
|
|
| MD5 |
09a4975189328444ca538010a5ca154d
|
|
| BLAKE2b-256 |
e4d647e6dfad6c7481acbf712f135ed27370b39562d88438bfb186308822250a
|
Provenance
The following attestation bundles were made for duhs-0.1.1.tar.gz:
Publisher:
publish.yml on beantownbytes/duhs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
duhs-0.1.1.tar.gz -
Subject digest:
3a18de404acd593739e40820b7e9a28e048e0d2953b3a17f1567198c2070992d - Sigstore transparency entry: 804179380
- Sigstore integration time:
-
Permalink:
beantownbytes/duhs@32c9add216c9c8299ba749440b4cec243f1acfa8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/beantownbytes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32c9add216c9c8299ba749440b4cec243f1acfa8 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1ac215a1db1be1017cc8ceb4c0fa4ae759f5fc9d0371812ea4fc1c6f756bb5e
|
|
| MD5 |
c15dcf40dca220047df7ce062db98878
|
|
| BLAKE2b-256 |
099f1723c0fd21764e726486184924c4e43dbe3177cf973c5640c9653c417de4
|
Provenance
The following attestation bundles were made for duhs-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on beantownbytes/duhs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
duhs-0.1.1-py3-none-any.whl -
Subject digest:
a1ac215a1db1be1017cc8ceb4c0fa4ae759f5fc9d0371812ea4fc1c6f756bb5e - Sigstore transparency entry: 804179382
- Sigstore integration time:
-
Permalink:
beantownbytes/duhs@32c9add216c9c8299ba749440b4cec243f1acfa8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/beantownbytes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32c9add216c9c8299ba749440b4cec243f1acfa8 -
Trigger Event:
release
-
Statement type: