You are not logged in.

#1 2013-10-26 21:34:39

maggie
Member
Registered: 2011-02-12
Posts: 255

View disk usage grouped by type of file

Hello everyone. Is there a disk analysis utility for Linux that will scan a disk and report the usage of files grouped by type? For example, MacOSX does this and it knows that mp3 and acc are music and avi,mpg,mkv are video. Here is a screenshot of what I'm asking for:


Link to pic

-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by maggie (2013-10-26 21:49:10)

Offline

#2 2013-10-26 21:40:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: View disk usage grouped by type of file

If you define e.g. what constitutes a backup or where does it reside, you can write a program that works in a similar fashion.

I use just the directories and subdirectories and I have my photos in ~/pics, audio files in ~/music etc.
https://wiki.archlinux.org/index.php/Li … y_programs

Offline

#3 2013-10-26 21:41:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: View disk usage grouped by type of file

Not a Sysadmin issue, moving to Apps and DEs...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-10-26 22:09:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: View disk usage grouped by type of file

Don't think there is such a thing for Linux.. you'd have to generate a list of all files and then run that through a check of known extensions --> type then aggregate the entire thing and graph it somehow.

EDIT: Someone probably wrote a script or util that does this, but the challenge is actually finding it!
EDIT2: Something like this in perl: https://sites.google.com/site/mailvorte … inux/duext

Last edited by graysky (2013-10-26 22:12:55)

Offline

#5 2013-10-27 09:09:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: View disk usage grouped by type of file

I think the following should get you a list of all files with sizes... you can then pull into a spreadsheet and post process:

# find /path/to/mountpoint -type f -ls >list.txt

Offline

Board footer

Powered by FluxBB