Re: Root growing
- From: David Bolt <blacklist-me@xxxxxxxxxx>
- Date: Tue, 29 Jun 2010 22:44:24 +0100
On Tuesday 29 Jun 2010 21:13, while playing with a tin of spray paint,
mjt painted this mural:
On Tue, 29 Jun 2010 20:58:54 +0100
David Bolt <blacklist-me@xxxxxxxxxx> wrote:
du / --max-depth=1 --one-file-system --exclude=/proc \
--exclude=/dev --exclude=/sys | sort -nr
Might want to run that as "sudo" :)
Well, you could do, but why would you? Personally, I would open up a
console[0], use "su -" to become root and then use the command.
Either way (sudo or su) ... my point is that the results
of the "du" will be different if you running it as your
regular user or if running as the root user.
Which was why I initially said to be the root user when using it. That
way, there's not a long list of messages similar to:
du: cannot read directory `/var/cache/multipath': Permission denied
and the count isn't low because of the permission denied errors.
I'd like to add one other option for "du" ... the "-h" option,
which prints out the sizes in a human-readable format :)
I specifically didn't include that because, as Ulick points out, the
sort ordering won't work and gives the wrong results as shown here:
moray:~ # du / --max-depth=1 --one-file-system --exclude=/proc --exclude=/dev --exclude=/sys | sort -nr
6398852 /
920040 /var
832672 /opt
319028 /lib
63220 /etc
24864 /root
17544 /lib64
12884 /sbin
10012 /bin
84 /tmp
28 /lost+found
24 /local
18 /media
8 /mounts
4 /usr
4 /srv
4 /selinux
4 /mnt
2 /boot
0 /home
moray:~ #
moray:~ # du / --max-depth=1 --one-file-system --exclude=/proc --exclude=/dev --exclude=/sys -h | sort -nr
899M /var
814M /opt
312M /lib
84K /tmp
62M /etc
28K /lost+found
25M /root
24K /local
18M /lib64
18K /media
13M /sbin
9.8M /bin
8.0K /mounts
6.2G /
4.0K /usr
4.0K /srv
4.0K /selinux
4.0K /mnt
2.0K /boot
0 /home
Regards,
David Bolt
--
Team Acorn: www.distributed.net
openSUSE 11.0 32b | | | openSUSE 11.3RC1 32b
| openSUSE 11.1 64b | openSUSE 11.2 64b |
TOS 4.02 | openSUSE 11.1 PPC | RISC OS 4.02 | RISC OS 3.11
.
- Follow-Ups:
- Re: Root growing
- From: mjt
- Re: Root growing
- References:
- Root growing
- From: Pete Puma
- Re: Root growing
- From: David Bolt
- Re: Root growing
- From: mjt
- Re: Root growing
- From: David Bolt
- Re: Root growing
- From: mjt
- Root growing
- Prev by Date: Re: Openoffice
- Next by Date: Re: Openoffice
- Previous by thread: Re: Root growing
- Next by thread: Re: Root growing
- Index(es):
Relevant Pages
|