Comments (8)
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.
Could just pipe it through sort
.
from diskus.
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.
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.
@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.
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.
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.
Hello, was this ever implemented?
from diskus.
Related Issues (20)
- Please publish Cargo.lock with the crate HOT 7
- Difference in size reported by `du -sh` and diskus HOT 4
- Support resident size as well as apparent size or clarify description HOT 4
- Stack overflow HOT 4
- Discard warning messages HOT 7
- Missing manpage HOT 1
- Support Windows as target OS HOT 8
- Add plain output option HOT 2
- diskus slower than du HOT 11
- There is no --exclude=/path HOT 1
- Provide path in output HOT 1
- Handling junctions in Windows HOT 1
- Undocumented stdout behaviour HOT 1
- Add an option to follow symlinks HOT 1
- Please upgrade the version of libc in Cargo.lock HOT 1
- [Feature] Support hidden, ignore-files HOT 1
- Consider adding support for Windows directory size "philosophy" HOT 10
- Progress bar and / or current copy speed
- Fails to,compile in ubuntu 20.04 focal HOT 1
- Usage with xargs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diskus.