The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
15 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
52 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
26 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
32 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
67 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
0answers
28 views

du Command in Ubuntu Terminal Giving Weird File Sizes - Samba Share

When running the du command I usually do something like this: du -h Then, the output is something like this (du -h /home/bob/): . . . 40K /home/bob/.pulse 12K ...
0
votes
2answers
87 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
64 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
274 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
114 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
230 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 ...
1
vote
1answer
194 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
78 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
901 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
354 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 ...
1
vote
2answers
479 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
83 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
189 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
8k 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? Since people seem to have different definitions ...
2
votes
0answers
111 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 ...
0
votes
2answers
3k 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 execute the command `du -h ~my_user_name` However, this lists every directory owned by my_user_name. I would like ...
1
vote
1answer
603 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 ...
1
vote
3answers
2k 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
322 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
87 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
237 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
2answers
37k 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
342 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
275 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
421 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 ...
1
vote
1answer
1k 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
224 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
400 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
338 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
90 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 ...
1
vote
3answers
2k views

How do I quickly calculate the size of a directory?

I want to calculate the size of my home directory, which has a lot of sub directories. It takes about 40 seconds to run du. Is there a quicker way? $ time du -sh 5.0G . real 0m39.676s user ...
-2
votes
4answers
381 views

choose between df and du in linux

I need to check the used space in some folders, and I need it to be fast to check because it will be inside a script. Which command should I use, "du -h" or "df -h"??
6
votes
1answer
8k views

du only for directories

In C-Shell, how can I get the same output as du -sh ./* but without listing the files in the root dir, i.e. just a list of subdirectories in ./ and the sizes of all their contents?
1
vote
2answers
611 views

what is faster, du or stat?

Which goes faster on Linux/Unix? du -b file.dat or: stat -c %s file.dat
5
votes
1answer
1k views

Why does du -sl show different sizes for the source and result of a cp -rl?

I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are ...
35
votes
3answers
20k views

How to analyse disk usage in command line linux?

du and df are nice, but I don't know how to filter the data they provide the way I do with SequoiaView. I would like to know which are the largest folders and the largest files in a glance.
2
votes
1answer
85 views

why does `du` not show results for all files?

I (for curiosity's sake) am running du -a inside /usr/lib/git-core and it does not show results for all the files in that directory. Why does it leave out an arbitrary set of files? this is what cd ...
2
votes
2answers
2k views

Equivalent of “du --max-depth=0 -h” (or something similar) in Solaris

The du command in my solaris environment has very terse help, no man page, and doesn't support the --max-depth option seen in the linux world. I want to know how much space a given directory ...
6
votes
3answers
2k 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 ...
4
votes
4answers
4k views

How does du determine which hard link to disregard?

We have two directories: $ ls -l total 8 drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 jeter drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 mariano I create one file in the first folder: $ dd ...
0
votes
3answers
814 views

How do I find out which file type is taking up the most space?

I have a zillion little files in a complex folder hierarchy; these are taking up too much space (ie. terabytes). I'd like to find out which file type (ie., .pdf etc) is taking up all the room so that ...
3
votes
3answers
2k views

Why do Finder and du report different file size?

I am writing a geektool 3 script to show the size of a particular VMware Fusion virtual machine. Such .vmwarevm "file" is really a packaged directory. Get Info in Finder says the file is "52.91 GB". ...