Skip to main content

All Questions

Tagged with
0 votes
1 answer
2k views

I know base 2 and base 10 , MB and MiB, but i'm not understanding the byte counts shown for a directory, by du and by windows explorer

The du command shows 43G in use. I'm not sure whether that's base 2 in the sense of 2^30 or if it's base 10, in the sense of 10^9. But anyhow - Running this du command from cygwin, to see the size ...
barlop's user avatar
  • 24.3k
3 votes
1 answer
3k views

pass du (disk usage) result to a numeric variable

In a shell script, I'm looking for a way to pass the du (disk usage) result to a numeric variable, so that I cantie the execution of a shell script to the size of a specific folder. I've tried ...
brunobhr's user avatar
0 votes
2 answers
1k views

du and df on Mac give different results

I'm trying to figure out where my HD space is going. df tells me this: bash-3.2$ df -h / Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 148Gi 137Gi 11Gi ...
Ronald S. Bultje's user avatar
1 vote
1 answer
563 views

Is my UNIX command du failing?

I was checking the space occupied in my hard drive, and I saw strange results when executing the du command. Here you have a sample of what I've typed: marcha_r@Risa marcha_r $ du -cksh * 28M ...
Keb's user avatar
  • 13