[Gllug] Job Advert

Iain Gray iain.dv at googlemail.com
Fri Feb 9 09:56:41 UTC 2007


> > df -h
>
I would be happy with just df anything
>
> >> 3. How do you find out the disk usage of a directory?
> >
> > du -hx --max-depth=1
>
> The problem is that this a really ambiguous question (your answer is
> nonportable but will work, as long as subdirectories are not wanted). I
> could equally well have answered
>
> ls -ld | cut -d\  -f 5
>
> or (nonportable, with the same effect but no dependence on the number or
> ordering of fields in ls output)
>
> find . -maxdepth 0 -printf '%s\n'

Or in linux world
du -s /dirname
just shows you the complete dir and all subdirs

Again ANYTHING!! (he pleads brokenly) would do. Hell, so long as it
has a d in it I'd probably cry with relief.


>
> > but i got an question for you as well :
> >
> > how do you mount (from Linux) a root of a DFS(Microsoft)?
>
> Pass, I don't do Microsoft. (I'm not even sure how to expand the DFS
> acronym, this being MS it probably means something strange; if it's
> Distributed File System then you use mount(8) and/or smbmount(8)...)

Eeww! no idea - whats a DFS? I thought it was a furniture store with
dodgy adverts.

Iain
>
> --
> `In the future, company names will be a 32-character hex string.'
>   --- Bruce Schneier on the shortage of company names
>
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list