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 > ------------------------ 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/
