[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: why is my local user (/dev/sda5) drive not being displayed by df?



On Wed, Mar 11, 2020 at 08:41:08AM -0400, Greg Wooledge wrote:
> On Wed, Mar 11, 2020 at 01:21:17PM +0100, tomas@tuxteam.de wrote:
> > On Wed, Mar 11, 2020 at 01:02:59PM +0100, Albretch Mueller wrote:
> > >  with your help I found a way around it (here is my silly scripting):
> > > 
> > > $ sudo _DF=$(df -h)
> > 
> > I don't think you need "sudo" for "df"?
> 
> And a good thing, too, because that syntax is completely wrong.
> 
> wooledg:~$ sudo x=$(id)
> usage: sudo -h | -K | -k | -V

[...]

> I think what Albretch was *trying* to do was this:
> 
> _DF=$(sudo df -h)

d'oh. Didn't catch that one. Of course it's "df" who gets to see
the "=", not the surrounding shell. Thank you for your (as usual)
sharp eye, especially in shell things.

Cheers
-- t

Attachment: signature.asc
Description: Digital signature


Reply to: