Re: Root growing



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

.



Relevant Pages

  • Re: Root growing
    ... On Tuesday 29 Jun 2010 20:43, while playing with a tin of spray paint, ... Might want to run that as "sudo":) ... I'm not my normal user. ...
    (alt.os.linux.suse)
  • Re: Terminal
    ... Mobile: +4917649520175 ... Fortune message of the moment ... I still don't get the point, why would someone enable the root user ... Is the pleasure of not typing sudo or just to avoid pain of entering the ...
    (Ubuntu)
  • Re: configuring sudo access for some users
    ... I want to configure sudo access for some users on my system. ... You don't want them running any shells (so no sudo -i) unless you have them thoroughly constrained with selinux. ... they are not able to become root user when they issue "su -". ... Ankush Grover ...
    (Fedora)
  • Re: [kde] new to Kubuntu
    ... install time the password is set to a random phrase and is pretty ... All root user work is assumed to be done with sudo. ...
    (KDE)
  • Re: Root in Desktop
    ... In Ubuntu, the root user has no password (and login without password is ... this is to force the user to sudo if they need these rights. ...
    (Ubuntu)