Package: coreutils
Version: 5.2.1-2
Linux martini 2.6.16 #4 Fri Jun 23 19:07:10 CDT 2006 i686 GNU/Linux
My home directory was getting large and I wanted to identify what to
clean up. I decided to do a little du and see what was taking space.
du -shc showed 6.7G total in my home dir. du -shc * showed 2.7 gigs.
It seemed that there was still a large quantity of files in .files or
.dirs. du -shc .* and du -shc .*/ showed the right files, but they did
not add up to the space they should have. After a bit of moving
individual files around, I isolated my .mozilla-thunderbird directory as
having 3.8 gigs. du -shc on that .dir did indeed show 3.8 gigs, but du
-shc .* did not list .mozilla-thunderbird.
-----------------
6.7G .
6.7G ..
0 .DCOPserver_martini_:0
4.0K .DCOPserver_martini__0
4.0K .ICEauthority
4.0K .Xauthority
8.0K .bash_history
4.0K .bash_profile
4.0K .bashrc
4.0K .dmrc
4.0K .festival_history
556K .fonts.cache-1
4.0K .fonts.conf
4.0K .gtkrc
4.0K .gtkrc-2.0
4.0K .gtkrc-2.0.bak
4.0K .gtkrc-2.0.mine
4.0K .gtkrc.bak
4.0K .gtkrc.tmp-13
4.0K .kderc
4.0K .lpoptions
4.0K .mcoprc
4.0K .minirc.dfl
4.0K .passwd.txt.gpg
16K .psql_history
12K .recently-used
4.0K .reportbugrc
28K .setup11802
4.0K .ssh-agent.sh
4.0K .sversionrc
12K .swn
12K .swo
12K .swp
12K .viminfo
12K .viminfo.tmp
0 .vimrc
40K .xsession-errors
18G total
--------------------------
Note that .mozilla-thunderbird is not in the list... in fact, after a
bit of looking, a lot of things aren't in the list:
--------------
[EMAIL PROTECTED]:~$] ls -ald .* | wc -l
81
[EMAIL PROTECTED]:~$] du -shc .* | wc -l
38
[EMAIL PROTECTED]:~$] echo .* |wc
1 81 806
--------------
It's obvious that .* comes out to be 81 elements, but du isn't looking
at them. It seems that some args are being missed as passed in by bash.
It will show it if I do du -shc .m* ...
------------------
[EMAIL PROTECTED]:~$] du -shc .m*
556K .macromedia
596K .mcop
4.0K .mcoprc
4.0K .minirc.dfl
85M .mozilla
3.8G .mozilla-thunderbird
40K .mplayer
3.9G total
------------
Below is what echo .* comes out to:
------------
[EMAIL PROTECTED]:~$] echo .*
. .. .DCOPserver_martini_:0 .DCOPserver_martini__0 .ICEauthority
.Xauthority .acrobat .adobe .bash_history .bash_profile .bashrc
.camel_certs .config .dmrc .ethereal .evolution .festival_history
.fonts.fonts.cache-1 .fonts.conf .gaim .gconf .gconfd .gimp-1.2
.gimp-2.0 .gimp-2.2 .gnome .gnome2 .gnome2_private .gnupg .gtkrc
.gtkrc-2.0 .gtkrc-2.0.bak .gtkrc-2.0.mine .gtkrc.bak .gtkrc.tmp-13
.icons .irssi .java .kde .kderc .kpackage .lftp .local .lpoptions
.macromedia .mcop .mcoprc .minirc.dfl .mozilla.mozilla-thunderbird
.mplayer .openoffice .pan .passwd.txt.gpg .psql_history .q3a .qt
.recently-used.reportbugrc .sbd .setup11802 .silc .silky
.snes96_snapshots .ssh .ssh-agent.sh .sversionrc .swn .swo .swp
.thumbnails .viminfo .viminfo.tmp .vimrc .vmware .vnc .xcdroast .xine
.xmms .xsession-errors
-------------
Here is what an ls -aldF .* shows
---------------
[EMAIL PROTECTED]:~$] /bin/ls -aldF .*
drwxr-xr-x 71 raz raz 8192 Jul 26 16:21 ./
drwxrwsr-x 6 root staff 4096 Jul 26 16:00 ../
lrwxrwxrwx 1 raz raz 32 Jul 26 16:18 .DCOPserver_martini_:0 ->
/home/raz/.DCOPserver_martini
__0
-rw-r--r-- 1 raz raz 54 Jul 26 16:18 .DCOPserver_martini__0
-rw------- 1 raz raz 376 Jul 26 16:18 .ICEauthority
-rw------- 1 raz raz 843 Jul 26 16:18 .Xauthority
drwxr-xr-x 2 raz raz 4096 Mar 2 2005 .acrobat/
drwx------ 2 raz raz 4096 Apr 14 2005 .adobe/
-rw------- 1 raz raz 6526 Jul 26 16:02 .bash_history
-rw-r--r-- 1 raz raz 209 Dec 15 2005 .bash_profile
-rw-r--r-- 1 raz raz 67 May 9 2004 .bashrc
drwx------ 2 raz raz 4096 Jul 18 2004 .camel_certs/
drwx------ 3 raz raz 4096 May 9 2004 .config/
-rw------- 1 raz raz 26 May 9 2004 .dmrc
drwxr-xr-x 2 raz raz 4096 Sep 28 2004 .ethereal/
drwxr-xr-x 6 raz raz 4096 May 9 11:55 .evolution/
-rw-rw-r-- 1 raz raz 1081 May 18 14:54 .festival_history
drwxr-xr-x 2 raz raz 4096 May 14 2004 .fonts/
-rw-r--r-- 1 raz raz 563966 Jul 26 16:21 .fonts.cache-1
-rw-r--r-- 1 raz raz 329 May 9 2005 .fonts.conf
drwx------ 5 raz raz 4096 Jul 26 16:19 .gaim/
drwx------ 4 raz raz 4096 Jul 26 16:19 .gconf/
drwx------ 2 raz raz 4096 Jul 26 16:21 .gconfd/
drwxrwxr-x 17 raz raz 4096 Sep 2 2004 .gimp-1.2/
drwxr-xr-x 21 raz raz 4096 Feb 20 2005 .gimp-2.0/
drwxr-xr-x 21 raz raz 4096 Jun 8 15:45 .gimp-2.2/
drwx------ 4 raz raz 4096 Dec 7 2004 .gnome/
drwx------ 3 raz raz 4096 May 11 17:44 .gnome2/
drwx------ 2 raz raz 4096 May 13 2004 .gnome2_private/
drwx------ 2 raz raz 4096 Jun 1 2005 .gnupg/
-rw-rw-r-- 1 raz raz 154 Jun 3 2005 .gtkrc
-rw-r--r-- 1 raz raz 160 May 27 2005 .gtkrc-2.0
-rw-r--r-- 1 raz raz 242 May 27 2005 .gtkrc-2.0.bak
-rw-rw-r-- 1 raz raz 160 Dec 7 2004 .gtkrc-2.0.mine
-rw-rw-r-- 1 raz raz 154 Jun 3 2005 .gtkrc.bak
-rw-rw-r-- 1 raz raz 164 Sep 29 2004 .gtkrc.tmp-13
drwxr-xr-x 2 raz raz 4096 Dec 9 2004 .icons/
drwx------ 2 raz raz 4096 Sep 13 2004 .irssi/
drwxr-xr-x 3 raz raz 4096 Jan 1 2005 .java/
drwx------ 4 raz raz 4096 Dec 29 2004 .kde/
-rw------- 1 raz raz 490 Jun 29 00:53 .kderc
drwxr-xr-x 3 raz raz 4096 Dec 23 2004 .kpackage/
drwxr-xr-x 2 raz raz 4096 Jul 31 2004 .lftp/
drwx------ 3 raz raz 4096 May 9 2004 .local/
-rw-r--r-- 1 raz raz 205 Jul 30 2004 .lpoptions
drwx------ 3 raz raz 4096 Jun 13 2004 .macromedia/
drwxr-xr-x 3 raz raz 4096 May 9 2004 .mcop/
-rw------- 1 raz raz 31 Jul 26 16:18 .mcoprc
-rw-rw-r-- 1 raz raz 166 Oct 25 2004 .minirc.dfl
drwx------ 6 raz raz 4096 May 9 2005 .mozilla/
drwxrwxr-x 3 raz raz 4096 May 12 2005 .mozilla-thunderbird/
drwxrwxr-x 3 raz raz 4096 Jan 9 2005 .mplayer/
drwxr-xr-x 3 raz raz 4096 Sep 13 2004 .openoffice/
drwx------ 4 raz raz 4096 Jan 8 2005 .pan/
-rw-rw-r-- 1 raz raz 166 Jun 1 2005 .passwd.txt.gpg
-rw------- 1 raz raz 13169 May 16 18:02 .psql_history
drwxrwxr-x 4 raz raz 4096 Jun 5 18:02 .q3a/
drwxr-xr-x 2 raz raz 4096 Jul 26 16:18 .qt/
-rw-r--r-- 1 raz raz 9443 Jun 8 15:37 .recently-used
-rw-rw-r-- 1 raz raz 643 Oct 1 2004 .reportbugrc
drwxr-xr-x 2 raz raz 4096 Apr 13 2005 .sbd/
-rwx------ 1 raz raz 27724 Jun 5 13:39 .setup11802*
drwxr-xr-x 5 raz raz 4096 May 12 2005 .silc/
drwx------ 4 raz raz 4096 May 12 2005 .silky/
drwxrwxr-x 2 raz raz 4096 Jan 1 2005 .snes96_snapshots/
drwx------ 2 raz raz 4096 Apr 6 17:35 .ssh/
-rw-rw-r-- 1 raz raz 131 Jul 3 10:00 .ssh-agent.sh
-rwxr-xr-x 1 raz raz 68 Apr 14 2005 .sversionrc*
-rw------- 1 raz raz 12288 Oct 28 2005 .swn
-rw------- 1 raz raz 12288 Aug 2 2005 .swo
-rw------- 1 raz raz 12288 May 24 2004 .swp
drwx------ 5 raz raz 4096 Mar 23 15:42 .thumbnails/
-rw------- 1 raz raz 9495 Jul 26 15:59 .viminfo
-rw------- 1 raz raz 8897 Jan 20 2005 .viminfo.tmp
-rw-r--r-- 1 raz raz 0 May 9 2004 .vimrc
drwxr-xr-x 2 raz raz 4096 Jul 26 15:28 .vmware/
drwx------ 2 raz raz 4096 Jun 10 05:07 .vnc/
drwx------ 2 raz raz 4096 Jul 10 2004 .xcdroast/
drwxr-xr-x 2 raz raz 4096 Jul 13 2004 .xine/
drwxr-xr-x 4 raz raz 4096 May 13 2004 .xmms/
-rw------- 1 raz raz 39673 Jul 26 16:25 .xsession-errors
--------
I went ahead and did an strace of du -shc .* and it's obvious that it's
processing .mozilla-thunderbird, it just seems those results are lost
internally. It's probably nothing special about that directory as you
can run du -shc .m* and it works fine.
--------------
open(".mozilla-thunderbird",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
fchdir(4) = 0
getdents64(4, /* 5 entries */, 4096) = 152
lstat64("appreg", {st_mode=S_IFREG|0664, st_size=335, ...}) = 0
lstat64("profiles.ini", {st_mode=S_IFREG|0664, st_size=104, ...}) = 0
lstat64("guvsq90v.default", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
getdents64(4, /* 0 entries */, 4096) = 0
close(4) = 0
open("guvsq90v.default", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
fchdir(4) = 0
.
.
.
.
----------
Wayne
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]