1 |
On Sunday 17 July 2011 18:18:58 Michael Sullivan did opine thusly: |
2 |
> Does this make sense: |
3 |
> |
4 |
> camille mysql # du -h |
5 |
> 572K ./mysql |
6 |
> 8.0K ./test |
7 |
> 239M ./mythconverg |
8 |
> 128K ./vpopmail |
9 |
> 152K ./myFantasy |
10 |
> 120K ./pmadb |
11 |
> 332K ./wikidb |
12 |
> 36K ./mysql_cpp_data |
13 |
> 592K ./forum |
14 |
> 124K ./movies |
15 |
> 84K ./myusers |
16 |
> 4.4M ./mythconverg.bak |
17 |
> 21G . |
18 |
> |
19 |
> |
20 |
> I'm pretty sure those number don't add up to 21G. So why is it |
21 |
> saying they do??? |
22 |
|
23 |
You have to understand what du is measuring, and that you are not |
24 |
supposed to add the numbers up. |
25 |
|
26 |
./ is 21G |
27 |
Then, each individual directory is listed with it's total. The |
28 |
difference is the *files* in . |
29 |
|
30 |
Run ls -al and you'll see a bunch of files there that will add up to |
31 |
21G |
32 |
|
33 |
|
34 |
> |
35 |
> On 07/17/11 18:11, Neil Bothwick wrote: |
36 |
> > On Sun, 17 Jul 2011 17:48:28 -0500, Michael Sullivan wrote: |
37 |
> >> What should I do about the *-bin files in /var/lib/mysql? |
38 |
> >> I've dropped the databases I've created and don't need |
39 |
> >> anymore, but there's still a lot of files in there, and it's |
40 |
> >> still 21G. There are several files there dated 2008 that are |
41 |
> >> also on another computer. How do I safely remove them? |
42 |
> > |
43 |
> > With rm. |
44 |
-- |
45 |
alan dot mckinnon at gmail dot com |