df -h without loop listing??
Dave Stevens
geek at uniserve.com
Thu Jun 20 00:03:01 UTC 2019
On Wed, 19 Jun 2019 19:55:13 -0400 (EDT)
Robert Heller <heller at deepsoft.com> wrote:
> At Thu, 20 Jun 2019 00:34:47 +0100 "Ubuntu user technical support,
> not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
> >
> > On Wed, Jun 19, 2019 at 04:19:22PM -0700, Dave Stevens wrote:
> > > I don't see an option for df to omit these /dev/loopXX lines,
> > > currently 28 of them. Does anyone know how to do this?
> >
> > They're all of the "squashfs" type (as "df -T" will show), so "df -x
> > squashfs" will do it.
>
> In the more general case (/dev/loop mounts in general, eg ISO images
> or other sorts of images), piping throgh 'grep -v ...' will also work:
>
> df -h | grep -v /dev/loop
>
> Plumbing is a wonderful and powerful thing...
>
yes, thanks, works! I asked because I remember vaguely seeing an
answer to a similar question that used an undocumented switch. I'd have
to read the code to see that I suppose, it wasn't on the man page.
D
--
In modern fantasy (literary or governmental), killing people is the
usual solution to the so-called war between good and evil. My books are
not conceived in terms of such a war, and offer no simple answers to
simplistic questions.
----- Ursula Le Guin
More information about the ubuntu-users
mailing list