Thanks That makes sense, but can anyone then explain the following In the first case df shows more space usage than du but in the second case du shows more space usage than df.... so what on earth is going on????
************************** bash-3.00$ df -h /boot Filesystem Size Used Avail Use% Mounted on /dev/hda6 48M 37M 11M 78% /boot bash-3.00$ du -hs /boot 4.2M /boot bash-3.00$ df -h /opt Filesystem Size Used Avail Use% Mounted on /dev/hda8 1.2G 676M 470M 60% /opt bash-3.00$ du -hs /opt 698M /opt bash-3.00$ ************************* --- beeplove <[EMAIL PROTECTED]> wrote: > du is the disk usage by all files reside in a > directory > df is the size of filesystem > > you might see an expected result for du -hs > /home/user > but you won't see an expected result for df -h > /home/user if > /home/user is not a file system. > > df shows the size used by all files + space required > for a file system > while du shows the size used by all files for a give > directory. > > Hope this would explain to understand the difference > between du and df. > > Thanks, > > > > --- In [email protected], Emon > <[EMAIL PROTECTED]> wrote: > > > > Hi all > > > > I am newbie running Slackware-10.2 > > > > A quick question > > Can any one please tell me why the two commands > are > > giving results?? > > > > ****************** > > bash-3.00$ df -h /boot > > Filesystem Size Used Avail Use% > Mounted on > > /dev/hda6 48M 37M 11M 78% /boot > > bash-3.00$ du -hs /boot > > 4.2M /boot > > bash-3.00$ > > ****************** > > > > Thanks > > Emon > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/hYOolB/TM --------------------------------------------------------------------~-> To unsubscribe send a blank mail to: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/bdlug/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
