Skip to main content

ncdu-compare

Project description

ncdu-compare

Compare ncdu export files and shows differences to find out what consumes most space.

Installation

# from pypi
pip3 install ncdu-compare

# ... or from git
pip3 install git+https://github.com/yaroslaff/ncdu-compare.git

Example usage

# measure current /var/log 
$ ncdu /var/log/ -0o /tmp/1

# create extra 1M file... and just wait
$ sudo dd if=/dev/zero of=/var/log/zzz.log bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00229604 s, 457 MB/s

# measure /var/log again
$ ncdu /var/log/ -0o /tmp/2

# see top usage
$ ncdu-compare /tmp/1 /tmp/2 | sort -n | tail -n 5
155 /var/log/syslog (8673820 > 8673975)
343 /var/log/auth.log (45035 > 45378)
576 /var/log/minidlna.log (20389653 > 20390229)
1048576 /var/log/zzz.log (0 > 1048576)
1049894 /var/log (755103600 > 756153494)

See also

My other project Plus Size to detect changes in short-time (e.g. fast growing log files)

ncdu-diff C + Python ncdu fork that can compare and diff results

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ncdu_compare-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ncdu_compare-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ncdu_compare-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for ncdu_compare-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcdc25538db29e7f0ac57f7ac039a53e47b9fa5e7e9d38da9c7a60ec81d8bc50
MD5 3772cc7dc6c43ec1175a3628b6767ad5
BLAKE2b-256 112ab6426dde475ede6fc125d722c2ab3e12d7bc3203df4230a5188c732b0db9

See more details on using hashes here.

Supported by

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