Thursday, 15 July 2010

terminal - du command not giving accurate results -



terminal - du command not giving accurate results -

when seek utilize du command, see size of folders example:

du -h --max-depth=1 some-folder/

28m 11m 8.0k 4.2m 260k 896k 86m 7.9m 24k 8.6m 22m 14m 6.0m 60k 912k 365m total

,final size not shows real sum of above numbers. why summary size wrong?

the command you're executing shows folders only. hence files in some-folder added total not listed individually. seek this:

du -hs some-folder/*

but note if have hidden files (ie. files dot prefix) won't listed command either.

terminal command size folder du

No comments:

Post a Comment