Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jftuga/duu
Directory Usage Utility
https://github.com/jftuga/duu
command-line disk-usage python3
Last synced: about 1 month ago
JSON representation
Directory Usage Utility
- Host: GitHub
- URL: https://github.com/jftuga/duu
- Owner: jftuga
- License: mit
- Created: 2018-05-22T18:58:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T16:11:06.000Z (about 1 year ago)
- Last Synced: 2023-12-23T17:13:21.350Z (about 1 year ago)
- Topics: command-line, disk-usage, python3
- Language: Python
- Size: 15.6 KB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# duu
Directory Usage UtilityRecursively display disk usage in kilobytes of the given directory.
With Python 3, this will run under Windows, Linux and MacOS.
A stand-alone windows executable is provided on the [release page](https://github.com/jftuga/duu/releases)
```
usage: duu.py [-h] [-b] [-e] [-q] [-s STATUS] [-n] [-N] [-f] [-S] [-H]
[-T THREADS] [-x EXCLUDE] [-X REGEXPR] [-o OUTPUT]
[dname]Display directory disk usage in kilobytes, plus totals
positional arguments:
dname directory nameoptional arguments:
-h, --help show this help message and exit
-b, --bare do not print summary or stats; useful for sorting when
used exclusively
-e, --ext summarize file extensions
-q, --quiet don't display individual directories
-s STATUS, --status STATUS
send processing status to STDERR, every STATUS number
of directories
-n, --nodot skip directories starting with '.'
-N, --norecurse do not recurse
-f, --files also display number of files in each directory
-S, --stats display mean, median, mode and stdev file statistics
-H, --human display numbers in a more human readable format
-T THREADS, --threads THREADS
number of concurrent threads, consider for SANs
-x EXCLUDE, --exclude EXCLUDE
colon-separated list of case-insensitive strings to
exclude
-X REGEXPR, --regexpr REGEXPR
colon-separated list of case-insensitive regular
expressions to exclude
-o OUTPUT, --output OUTPUT
output to CSV fileDirectory Usage Utility (duu), version: 2.20
```
Example output:
```
c:\>duu compinfo
242 compinfo
0 compinfo\bin
0 compinfo\bin\Debug
485 compinfo\bin\Release
0 compinfo\obj
46 compinfo\obj\Debug
0 compinfo\obj\Debug\TempPE
735 compinfo\obj\Release
4 compinfo\obj\Release\TempPE
17 compinfo\Propertiessummary
=======
files : 59
directories : 10
bytes : 1,566,218
kilobytes : 1,529.51
megabytes : 1.49```