The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
14 views

# du -h --max-depth=1 / -> Permission denied (but I'm root)

Why in the output of # du -h --max-depth=1 / there are complains about permissions, shouldn't root see everything? root@machine:/# du -h --max-depth=1 / 529M /opt 112M /boot 20K /mnt 8,0K ...
1
vote
1answer
28 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
37 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 ...
1
vote
1answer
12 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 ...
0
votes
0answers
83 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
44 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
1answer
68 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
106 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
0answers
76 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 ...
2
votes
1answer
561 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 ...
1
vote
2answers
85 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 ...
1
vote
1answer
116 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
92 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 ...
0
votes
3answers
96 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 . ...
0
votes
2answers
115 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
37 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 ...
0
votes
2answers
2k 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
119 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 ...
0
votes
1answer
162 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: ...
0
votes
2answers
159 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 ...
0
votes
2answers
220 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
124 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
522 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 ...
0
votes
0answers
189 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 ...
2
votes
0answers
361 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 ...
2
votes
1answer
591 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
120 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 ...
4
votes
1answer
3k 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
1answer
719 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 ...
2
votes
2answers
2k views

du -x still examines mounted filesystems when using wildcards

If I try du -s -h -x /* it will try to examine all filesystems (real and pseudo) mounted directly under /, e.g. /dev, /proc, /sys, /run, and /home (/home is on an extra partition). I think it ...
0
votes
1answer
181 views

Difference between 'du' and 'du -b'?

root@host:/var/log/apache2# du access.log -bh 753M access.log root@host:/var/log/apache2# du access.log -h 1.2G access.log Why is there such a huge difference in size for the same file?
2
votes
1answer
377 views

“du -h” with more decimal places

I'm working on a little util tool written in bash that gives me some information about a game server on Linux. For that reason I need a possibility to display the size of the file contents. I'm doing ...
7
votes
5answers
16k 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 ...
2
votes
0answers
152 views

Explaination needed for strange df and du results

Can someone help me to understand the following output # df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 8.0G 7.5G 167M 98% / udev 7.4G 8.0K 7.4G 1% /dev ...
2
votes
2answers
11k views

Total disk usage for a particular user

I would like to see the total disk usage for myself on a particular file system. I executed the command du -h ~my_user_name However, this lists every directory owned by my_user_name. I would like ...
1
vote
1answer
1k views

Why directories size are different in ls -l output on XFS file system?

I can't understand why ls -l show folder size less then block size. For example: [user@01 NEW]$ ls -l total 4 drwxr-xr-x 5 root root 78 Apr 22 00:43 controllers drwxr-xr-x 14 root root 4096 Apr ...
2
votes
3answers
5k views

du which counts number of files/directories rather than size

I am trying to clean up a hard drive which has all kinds of crap on it accumulated over the years. du has helped reduce disk usage, but the whole thing is still unwieldily not due to the total size, ...
1
vote
2answers
481 views

Discrepancy between df and du

I have a question pertaining the difference from 'df -h' and 'du -bs'. I have seen several questions here about it, but the issue was always that 'df -h' was reporting more used space than 'du -bs'. I ...
0
votes
2answers
333 views

How to summarize du results

I'd like to get the sum of all folder sizes produced by du -sh /*something That is, instead of: du -sh /Applications/Adobe* 639M Adobe 871M Adobe Acrobat X Pro 1.0G Adobe After ...
1
vote
1answer
305 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 ...
56
votes
2answers
95k views

Bash: Display each sub-directory size in a list format using 1 line command?

I want to get a list of the directories and their sizes in a list format like how you get when you do a ls -l. The thing is that is there a one line command that can do this? I see others have long ...
0
votes
0answers
470 views

Du shows wrong file size for about 1 minute

I have a problem with "du -hs" showing a wrong file size for about 1 minute. for example: downloading 200MB file, and checking with du right after the download has been completed will show 1.1MB. than ...
3
votes
2answers
560 views

explanation about du command linux diskusage

What is the difference between these two: du -h --max-depth=2 /usr/* | sort -nr | head -n 20 And: du -h --max-depth=2 /usr/ | sort -nr | head -n 20 I would like to display the 20 biggest ...
0
votes
1answer
700 views

sort du -sh by size in human readable

with the command du -sh * I get the summary of files in MB,GB, etc. If I use du -s * | sort -nk1 I get the summary sort by size. How I can get the summary sort by size in MB, GB, etc? Edit the ...
3
votes
1answer
3k 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
2answers
426 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?
1
vote
2answers
520 views

Why doesn't Ext4 cache directory size?

Once again I'm cleaning up my desktop because I'm running out of HDD space and everytime I call 'du -sh ~', it takes a really long time to calculate the current size of the directory. From my ...
0
votes
1answer
616 views

du excluding hard links possible?

I'm trying to determine how big a cloned Git repository is from a local file system. It creates hard links for some but not all files. How can I determine the disk usage of it? The best I can come up ...
2
votes
1answer
102 views

Equivalent of “du --time -h” (or something similar) in Solaris

How can I get something similar to du -h --time at solaris?
2
votes
3answers
2k views

Is there a way to force du to report a directory size (recursively) including only sizes of files?

Suppose I create a directory test/, with two files (test/a, test/b) and an inner directory test/c with a file test/c/d, like this: mkdir test cd test touch a echo 1 > a touch b echo 1 > b mkdir ...