|
|
2009-12-20
, 23:04
|
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#42
|
Might it be the case that du follows links into other file-systems and includes the size of their contents?
-x, --one-file-system
skip directories on different file systems
~ $ du --help
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) multi-call binary
Usage: du [-aHLdclsxhmk] [FILE]...
| The Following User Says Thank You to kwotski For This Useful Post: | ||
|
|
2009-12-20
, 23:11
|
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#43
|
|
|
2009-12-21
, 03:27
|
|
Posts: 62 |
Thanked: 10 times |
Joined on Oct 2009
|
#44
|
|
|
2009-12-21
, 08:17
|
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#45
|
|
|
2009-12-21
, 14:16
|
|
Posts: 278 |
Thanked: 209 times |
Joined on Dec 2009
|
#46
|
|
|
2009-12-21
, 19:19
|
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#47
|
~ $ dpkg -l mplayer
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
rc mplayer 1.0svn4 The Ultimate Movie Player port for N900
~$ dpkg --status xserver-xephyr Package: xserver-xephyr Status: unknown ok not-installed Priority: optional Section: x11
|
|
2009-12-22
, 07:14
|
|
Posts: 118 |
Thanked: 45 times |
Joined on Dec 2009
@ Germany
|
#48
|
The -x switch is supposed to make it not do that.
Maybe that's not operational here, where du is just a symlink to busybox. But it claims to support the switch:
).|
|
2009-12-22
, 10:43
|
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#49
|
|
|
2009-12-22
, 11:06
|
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#50
|
~# mkdir ttt
~# ln -s /usr/share ttt/test
~# ln -s /usr/share test2
~# du -s /usr/share
76716 /usr/share
~# du -s ttt test2 /usr/share
0 ttt
0 test2
76716 /usr/share
~#
# du -s /home
2195060 /home
~# du -sx /home
204468 /home
the script shouldn't need any change to do the Right Thing in relation to symlinks 
Nope, it did the Wrong Thing in relation to symlinked directories. Please get the new version (from the original place) if you're having trouble with that.
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.