All Questions
11
questions
0
votes
1
answer
83
views
Unexpected behavior with -h flag passed to du
As long as I've been living in *nix world I've lived under the assumption that when a command accepted a -h flag the only thing I was changing was effectively formatting of a print statement. I don't ...
0
votes
1
answer
607
views
Inconsistent output of `du` command
Why is the output of
du -sch ./
not identical to
du -sch ./*
E.g. I ran du -sch in my user's home directory and got 51GB but running du -sch * in the same directory results in 47GB. At first I ...
0
votes
1
answer
91
views
How to estimate disk space used by a directory excluding certain subdirectory?
I want to estimate the amount of disk space used by a user via Apple Remote Desktop Unix command.
I've been trying the following command, running as root
sudo du -sh /users/
but I'd like to add the ...
0
votes
1
answer
1k
views
DU reports different folder size in unix and cygwin (windows)
I was copying some files from windows machine to unix one (debian) and after checking file count (both matched) i tested folder size with du and i got different results:
windows:
@/cygdrive/f/Cubie-...
24
votes
4
answers
30k
views
Is it possible to format ps RSS (memory) output to be more human friendly?
Executing ps ux returns a nice list of process information, easy to grep through or watch. However, there doesn't seem to be much flexibility in the memory usage output; the RSS (resident set size) is ...
1
vote
2
answers
2k
views
What will happen if my DB server runs out of disk space?
I'm seeing a huge difference of free disk space between
df -h
and du -sxh /
I've understood in my question Resolving unix server disk space not adding up that du -sxh / is a better estimation as ...
28
votes
5
answers
42k
views
How to get the actual directory size (out of du)?
How do I get the actual directory size, using UNIX/Linux standard tools?
Alternative question: How do I get du to show me the actual directory size (not disk usage)?
Since people seem to have ...
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 ...
23
votes
2
answers
23k
views
Only get the size from "du" command, not the folder names
I am doing an applescript that is supposed to set the size of an folder to an varible. This is the code so far:
set sizeVar to do shell script "du -skh -m /Users/JS_Admin/Desktop"
Output:
"4242 /...
0
votes
2
answers
738
views
How do I sort command-line output?
I'm trying to use du to sort the output by filesize, but it doesn't looks like there's an option for that.
Can I pipe it into another command to handle the sorting?
8
votes
3
answers
4k
views
Difference between df -k and du -sh
df -k
/dev/sda6 25396228 21249088 2836240 89% /export
21G used
versus
du -sh /export
3.4G /export
The 3.4G is correct because we have removed all non essential file but free ...