Can someone expalin the size difference between the two commands :
1. du -ks .
2. ls -laR | awk '{ sum += $5 } END { print sum/1024 }'
- $5 is the 5th column that displays the byte count
I thought that at least the two figures should be close since both are supposed to display the total space used.
Any help in enlightening my confused mind would be much appreciated.
TIA
wube
1. du -ks .
2. ls -laR | awk '{ sum += $5 } END { print sum/1024 }'
- $5 is the 5th column that displays the byte count
I thought that at least the two figures should be close since both are supposed to display the total space used.
Any help in enlightening my confused mind would be much appreciated.
TIA
wube