Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Storage usage by media type

Post

Storage usage by media type

+3
−0

Question

How can I view storage usage breakdown by media type?

MWE

Android example

Notes

Commandline would be great, but open to anything.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

I'd use `find` to visit all files, calling [`find --mime-type`](https://stackoverflow.com/questions/2... (1 comment)
Maybe have a look at https://github.com/shundhammer/qdirstat (1 comment)
I'd use `find` to visit all files, calling [`find --mime-type`](https://stackoverflow.com/questions/2...
Matthias Braun‭ wrote over 1 year ago · edited over 1 year ago

I'd use find to visit all files, calling file --mime-type to get the file type and then aggregate the data with awk as shown here or here.