1 |
Philip Webb wrote: |
2 |
|
3 |
> 110325 Alex Schuster wrote: |
4 |
>> Philip Webb writes: |
5 |
>>> In /var/log/ there is a file wtmp , which is 24 MB & owned by utmp |
6 |
>>> Can anyone explain what it's for & whether it cb safely deleted ? |
7 |
>> It tracks logins, you can use the 'last' command to show its contents. |
8 |
>> If wou want to get the space, I suggest compressing the file, |
9 |
>> bzip2 -v /var/log/wtmp |
10 |
> |
11 |
> Yes! -- it fell from 24 MB to 444 KB ! -- most of it is repetitious. |
12 |
> It's just started a new 'wtmp' after a reboot, good for another 4,5 yr . |
13 |
|
14 |
Simply install logrotate. It delivers already a setup to clean it up once a |
15 |
month automatically. |
16 |
|
17 |
- Jörg |