Nepomuk/Strigi filled my disk

Anne Wilson cannewilson at googlemail.com
Thu Mar 5 18:51:49 GMT 2009


On Thursday 05 March 2009 17:54:23 Randy Kramer wrote:
> On Thursday 05 March 2009 12:09 pm, Matthew Woehlke wrote:
> > Anne Wilson wrote:
> > > ok - I tailed that into a new .xsession-errors and deleted (not
>
> moved) the old
>
> > > file.  df doesn't show the space reclaimed, though.  Log out - no
>
> that didn't
>
> > > free it up.  Reboot - yes! I now have 20GB free in /home.
> >
> > lsof is your friend :-). You shouldn't need to reboot, but you might
> > need to hard-kill X or some such. (The file won't actually go away
>
> until
>
> > nothing has it opened.)
>
> I have a line like the following in my (well, actually my root) crontab
> (currently for once a day execution).  (Clearly, if it was needed, it
> could be run more often):
>
> echo "Cleared on $(date) by $USER cron" >  /home/<user>/.xsession-errors
>
> This seems to immediately reduce the size of the crontab file without
> rebooting or killing X.
>
As far as I can see a new file is created at each login.  What's more, it 
doesn't version it.  I was hoping that by saving the tail of the file to a 
clean one I would be able to examine the final entries once I'd rebooted to 
clear out anything left around, but no, there is no .xsession-errors_1 or 
anything like that.  Just a new file.
> Someone else (was it Anne?), mentioned something about "tailing" the
> file?  What do you actually do?
>
Tail lets you see the final entries of the file.  The default is 10, so 

tail .xsession-errors

would show you the last 10 lines.

tail -50 .xsession-errors would show you the last 50 lines and

tail -50 .xsession-errors > .xsession-errors.sav would put those 50 lines into 
a text file.  That's what I should have done, instead of just letting it 
overwrite itself.

Anne

-- 
New to KDE4? - get help from http://userbase.kde.org
Just found a cool new feature?  Add it to UserBase
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20090305/3aaa9a48/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list