[email protected] wrote on 05/19/2009 07:01:18 PM:

> Bruno Santos 
> 
> to:
> 
> lpi-examdev
> 
> 05/19/2009 08:15 PM
> 
> Hi.
> 
> I've seen the example 101 exam in the end of the LPI page and 
> there's a question that intrigues me.
> The last question about the command that shows how much free space 
> is avaiable in the current directory.
> 
> Wich one is the most correct ? 
> 
> du or du . ?
> 
> Both report the space, but the . referes to the current directory. 
> Is this one the best answer ?
> 
> Cheers,
> 
> Bruno

du shows used space, not free space, so neither is correct.
df .
will show you the free (and used) space on the filesystem that houses the 
current directory. 

You might want to read the man pages for both du and df and try out some 
variants on your own system.

Ian Shields Ph.D.
Linux  Technologist, ISV & Developer Relations
IBM Corp
Research Triangle Park, NC
[email protected]
_______________________________________________
lpi-examdev mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev

Reply via email to