Git Product home page Git Product logo

duvis's Introduction

duvis - a du visualizer

Copyright © 2014 Bart Massey

Rationale

I constructed duvis to take the place of the standard xdu(1) for visualizing du(1) disk usage output. There are a couple of reasons for replacing xdu:

  1. In 2014 xdu is just too slow. I'm not sure when it would have completed on the 5.7M lines of du output for one of my (smaller) machines, but a half-hour didn't seem to do it. The core algorithms used in xdu are quite inefficient, and the use of storage is not good.

  2. It's neat that xdu is an X Window System visualization. Sadly, though, I often would really prefer ASCII art for portability: I don't need the graphics, and being able to work with the output in my text editor can be rather sweet.

  3. The visualization xdu provides isn't very well matched to my normal task: finding things to archive or delete from large systems.

The duvis visualization is produced quickly, defaults to ASCII, and works acceptably well for its target use case.

Usage

As with xdu, you invoke duvis on the output of du; currently the du output is read from standard input, so either a pipe or a file is fine. The du output must be complete, in the sense that every prefix of every path in the file has an entry (with the exception of the common prefix that was given to du); both relative and absolute paths work.

The ASCII output of duvis is the paths that were input, with only the last component shown except at the root, indented according to nesting depth, and sorted at each level by decreasing size, with ties broken alphabetically.

There is also a graphics mode of duvis similar to that of xdu.

License

This program is licensed under the "MIT License". Please see the file COPYING in the source distribution of this software for license terms.

duvis's People

Contributors

bartmassey avatar andeh575 avatar

Stargazers

Kevin E. Johnson avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

andeh575

duvis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.