how much space are my .isos taking up?

Robert Heller heller at deepsoft.com
Wed Oct 31 13:00:56 UTC 2018


At Wed, 31 Oct 2018 11:23:35 +0000 "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> On Tue, Oct 30, 2018 at 11:50:40PM -0400, Gene Heskett wrote:
> > On Tuesday 30 October 2018 22:47:30 Dave Stevens wrote:
> > > I was surprised when I ran "locate .iso" to see twenty or so in the
> > > list. Does anyone know a handy way to get a listing with file sizes?
> > 
> > Try something like this:
> > 
> > #> ls -l `locate *.iso`
> > 
> > Note that those are backticks, below the tilde on a US keyboard. They 
> > contain the response from locate, backfeeding to the ls -l.
> 
> More robust against file names containing spaces:
> 
>   locate -0 .iso | xargs -0 ls -ld

+1

also, additional pipeline elements (awk, bc, etc.) can be used to produce a 
total, if that is desired.

> 

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                  




More information about the ubuntu-users mailing list