Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [du]

"du" is the Linux command for reporting Disk Usage

5
votes
1answer
62 views

Why does du -b show a different result than stat?

I've recently ran into this problem: find /tmp/tmp33hn25wv -type f -exec stat --format='%s' {} + | awk '{s+=$1} END {print s}' 10420224 du -bs /tmp/tmp33hn25wv 12198004 /tmp/tmp33hn25wv Results ...
0
votes
0answers
10 views

Get disk usage from redhat 7 using on built in commands

I need be able to see what is writing to the disk at a certain time. There is no internet access to the servers nor available repos on the network. I have been playing with du however looking for a ...
1
vote
0answers
90 views

What is using my Mac's disk space? [closed]

df reckons that 627Gi of my hard drive is in use. Time Machine wants to back up in excess of 700GB just from this drive. $ df -h . Filesystem Size Used Avail Capacity iused ifree ...
1
vote
2answers
52 views

Running du on timeshift folders give different results

My goal is to find which files/folders take the most space in a snapshot from the backup tool timeshift but, when using du it yields different results: # du -hs * 18G 2018-09-21_16-14-57 910M ...
0
votes
1answer
67 views

use du to exclude mounted volumes but check root volume only

I am trying to check my disk usage, because my root volume is full. I'm on Centos 7.5. I thought that giving du the -x flag gets it to ignore mounted volumes. But when I check my disk usage on this ...
1
vote
0answers
110 views

Why is `du` on WSL acting giving a directory size greater than machine memory?

I ran into my question while trying to find out which files on my computer are taking up the most space. Here's the information on the total machine memory, found from Windows Subsystem for Linux (WSL)...
0
votes
1answer
55 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
1answer
43 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 ...
2
votes
1answer
195 views

Why does “du -sh” show different folder size after copy?

I want to have a simple backup and copied all files from one folder to another. OS is Debian. When I do a du -shon the source folder I get 436G. When doing the same on the destination I only get 384G....
0
votes
1answer
182 views

how to increase the space on docker in CentOS7?

How can I increase the space on this docker? I need to transfer 30G of images into this docker to do the image processing within the docker however seems I only have 2G available $ sudo docker pull ...
0
votes
1answer
151 views

Luks encrypted external disk does not have any free space

I have a luks encrypted external disk that worked normally al the time. But suddenly, there is no free space at all. Even when I delete something with rm bigfile there is no freed space. I looked up ...
0
votes
1answer
24 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 ./...
0
votes
1answer
3k 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
0answers
259 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
1answer
48 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 ...
3
votes
2answers
105 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
1answer
455 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
1answer
211 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
1answer
103 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
0answers
32 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
1answer
496 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
1answer
285 views

Does `du /` list every single file on a system? [closed]

Does du / list every single file? || Is there a better way?
0
votes
1answer
239 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 ...
2
votes
1answer
726 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
1answer
60 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
2answers
74 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 ...
1
vote
0answers
446 views

MAC OS X 10.9.5 - strange result with du command

Looking for big files that I could delete in order to free up some space on my Mac (OS X 10.9.5), I came up with a big cache file: /System/Library/Caches/com.apple.coresymbolicationd/data . It was ...
0
votes
1answer
332 views

MacBook Pro takes hours to recognize FAT32 external hard drive

My MacBook pro consistently takes hours to recognize a FAT32 (ms_dos) external hard drive. I have the same issue on a 2015 MacBook Air. The drive has 500G capacity and is connected via USB (no ...
0
votes
2answers
476 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 ...
3
votes
0answers
504 views

Different used disk space with du and quota

If I run quota I get: Disk quotas for user XXXXXX (uid xxxx): Filesystem blocks quota limit grace files quota limit grace /dev/md2 1119132* 1048576 2097152 none 6 0 ...
0
votes
1answer
359 views

Different directory size between GUI and Command Line

I got this weird size problem using Gnome: the size of Desktop directory is: 541.2 GB (right click properties) however when I run this command on a shell I get different size: du -sh Desktop/ 1.1T ...
3
votes
1answer
3k views

Faster du/stat alternative for directories

I have several very big directories and i want to know their estimated size. I use for this purpose mostly du, but it takes for each folder about 3 minutes, so i'm asking if there is an alternative to ...
2
votes
2answers
712 views

Centos 6.5 directory size is incorrect using du command

I 'm running the du command on one of my websites directories and I'm getting 2 different result, I'm confused which one is accurate and why there is a big difference, here both command and the output....
1
vote
1answer
380 views

Use mingw-get to install du

Does anyone know how to use mingw-get install to install the unix du command? I couldn't find which package to use. mingw-get install du does not work. This is with 32 bit MinGW/MSYS from mingw.org
0
votes
1answer
480 views

du command not displaying correctly

I've been trying to get PHP to list the size of a directory for a while now. I can't seem to get it to work. I've tried a few other solutions and the only thing that works -somewhat- is the du command....
0
votes
3answers
146 views

du -sh : I don't get why these two results are different

I need to know the size of a folder and some of its sub folders. So I'm trying to use the du command. I cd into the right directory and then try (in bash) : [xxx@yyy TEST]$ du -sh . 4.1G . [xxx@...
0
votes
2answers
817 views

Find directory name and file size in Linux

I have various folders used for product feeds across my server named 'empro'. Sometimes these folders fill up so I find them all on the server using: find /var/www/vhosts -type d -name 'empro' This ...
0
votes
1answer
78 views

Getting `du` to ignore size of `.` and `..` entries

Is it possible to have du leave out the size of the . and .. entries in each directory? I can't find a specific switch for it. Here is what doesn't work: du -S: doesn't change anything if there are ...
1
vote
2answers
6k views

du and ls report different directory size?

In trying to verify that a copy-operation completed successfully (or at least that it didn't skip any files), I ran du -b inside the source and destination directory and it showed a difference of ...
1
vote
1answer
231 views

SOLARIS: “du -s” vs “du -sh”

On all the SOLARIS servers I have access to du -s for some reason returns around twice of what it should. Example: root@someserver:/tmp/testdir# uname -a SunOS someserver 5.11 11.1 sun4u sparc SUNW,...
0
votes
1answer
580 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-...
0
votes
2answers
207 views

Where is my diskspace?

Recently my disk space reached the 98% mark, and I tried to discover the reason for this. My system consists of two disks: a ssd /dev/sda and a storage hdd /dev/sdb. My Linux is installed on /dev/...
0
votes
2answers
340 views

du -sb giving different results for 2 directories with same contents?

I have a directory A with 1000 sub-directories (000-999) each containing 3500 .jpg files. I wrote a PHP script that copied each of those files to another directory B in the exact same structure, ...
1
vote
0answers
163 views

du on Mac OS 10.9 gives two different answers for the same directory

If I run du on my iMovie Library.imovielibrary I can get two different results depending on how I run du. However, I believe both of these should result in the same value. Behold: davids-imac:Movies ...
1
vote
1answer
741 views

Linux Server out of Disk Space

When I run some commands I get 'out of space' messages. I looked around the Internet for ways to diagnose the issue. I ran df: adam@nas:/$ df Filesystem 1K-blocks Used Available Use%...
0
votes
0answers
276 views

Why does my virtual image use more than 3x as much space as the combined file system?

I'm trying to mess around with bitcoind (just the daemon) in a Virtualbox Ubuntu installation. So after installing bitcoind in the virtual installation it downloads the blockchain which is about 5 GBs....
2
votes
0answers
410 views

Ubuntu Server shows that I am running out of disk space, but I can't figure out where it is being used

I am showing that I am running out of disk space and I am having trouble uploading, but I can't figure out where the disk space is being used. I am supposed to have 19 gigabytes, but it looks like ...
4
votes
1answer
1k views

Disk space analyzer that can read du output

I'm looking for a GUI program that can parse du output and show both a browseable file tree and a treemap. So far i've tried: xdiskusage, xdu (Linux only, ugly GUI, no tree view) WinDirStat, ...
0
votes
1answer
268 views

'Du' command does not list all files

I receive different number of files with du -h and find: loom@loom-desktop$ du -h ~/storage/Apps/*/trunk/test/*.cpp | wc -l 35 loom@loom-desktop$ find ~/storage/Apps/ -path */trunk/test/*.cpp | wc -l ...
7
votes
3answers
12k 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 ...