Questions tagged [du]
"du" is the Linux command for reporting Disk Usage
119
questions
0
votes
1
answer
43
views
Can I do an inclusive du, as opposed to exclusive?
I need to do a du search that only grabs certain subfolders. For example, here is the directory structure:
du -b
0 ./678
21 ./679/536/Content_Repository_PoC_-_Main
73 ./...
4
votes
1
answer
26k
views
Excluding folders when doing du
I am trying to use du to get a list of the files/sizes on the filesystem (doing this as sudo):
cd /
du --exclude-from="/home"
and I am getting an error message, telling me that /home is a folder.
I ...
1
vote
0
answers
1k
views
Difference between du -sh */ and du -hd 1
I tried to find out how big each directory in my root-directory is.
I cd'ed to / and did:
ls | xargs du -sh
the result:
...
1.9M tmp
975M usr
70G var
...
Then I went to /var/www and did:
...
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 ...
2
votes
2
answers
249
views
du -s /foldername gives totally different output with or without -h option
I just executed the following two commands in the terminal on my Mac (MacOS Sierra):
$ sudo du -s Documents/
11027432 Documents/
$ sudo du -hs Documents/
5.3G Documents/
The info pane reports ...
0
votes
1
answer
2k
views
show file size and file owner
I am checking the file sizes of /tmp directory using du -h, but I also would like to have the ownership information of those files. There is a simple way to do this? I looked at the du manual and it ...
2
votes
2
answers
941
views
How to show uncompressed total physical size in bytes of an HFS-compressed file or directory?
Case in point: Apple's TextEdit at /Applications/TextEdit.app
If you calculate the physical size with echo "$(/usr/bin/du -k -d 0 /Applications/TextEdit.app | /usr/bin/awk '{print $1}') * 1024" | /...
0
votes
1
answer
723
views
Is normal this /usr/share/locale/zun/LC_MESSAGES/temp file size on my server 7.3G?
I have a server on CentOS Linux mydomain.com 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I see the folder /usr/ with more than 18G.
When I do a ...
1
vote
0
answers
118
views
Summing selective du sizes output
I am trying to find out how much space is consumed in total by files exceeding 50M in size. I am able to generate a list of file sizes with the following command:
find $PWD/soccer -maxdepth 50 -type ...
0
votes
1
answer
845
views
Wrong available storage reported for mac os
The available space on my Macbook Air is not getting reported correctly.
Hard disk capacity is 120GB out of which 17GB is getting reported as available space when I check HD info.
When I see in ...
-3
votes
1
answer
1k
views
Does `du /` list every single file on a system? [closed]
Does du / list every single file?
||
Is there a better way?
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 ...
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 ...
2
votes
1
answer
128
views
du is giving me inconsistent results depending on argument order
I'm running Darwin (Mac OS X 10.11.2 - the current version of El Capitan) on my Mac Book Pro, but this is about a standard command line utility, du.
I am getting inconsistent results from du:
21:19 %...
2
votes
2
answers
145
views
optimising 'du' reports on petabyte dataset?
I am trying to get a daily filesize report on a dataset of several Petabytes of genomics data.
Our current report uses multiple overlapping du invocations to achieve the result, but takes over 24 ...