Code Monkey home page Code Monkey logo

Comments (8)

sharkdp avatar sharkdp commented on June 15, 2024 7

I was not planning to turn this into a full-blown replacement for du, but that is indeed also my most common use-case.

What about changing the usage to

diskus [path]...

where diskus would just show the total size of the current directory, but diskus path1 path2 would show the total size for each path? The latter could simply be used with diskus *.

from diskus.

polyzen avatar polyzen commented on June 15, 2024 3

Could just pipe it through sort.

from diskus.

kpcyrd avatar kpcyrd commented on June 15, 2024 3

I usually use du -sch * which lists the size of each file/folder and the total size of all combined. This would be really useful to have.

from diskus.

jonhoo avatar jonhoo commented on June 15, 2024 1

That seems perfect! I think it'd also be handy for the resulting list to be sorted by size, not by the order of the arguments, but with that that's pretty much all I'd need!

from diskus.

jonhoo avatar jonhoo commented on June 15, 2024 1

@polyzen yup, you can always do that, but I'd argue that since it's by far the most common use-case, it seems reasonable for that to be the default :) That is also what dust does.

from diskus.

joeshaw avatar joeshaw commented on June 15, 2024

I tend to use du -h -d 1 over du -sh * for this, because it only lists directories.

It is sometimes nice to use a greater depth, like when trying to track down an unknown, particularly large subdirectory. So, at the risk of feature creep, it'd be nice to have summaries of arbitrary depth.

from diskus.

rNoz avatar rNoz commented on June 15, 2024

My main use case is exactly like @kpcyrd and @polyzen: per directory and file, total size of every listed file and output piped to sort -h.

from diskus.

mw55309 avatar mw55309 commented on June 15, 2024

Hello, was this ever implemented?

from diskus.

Related Issues (20)

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.