Large config/core file - can I just delete it? Is it a core dump?

I just noticed that there’s a core file in my config directory that has been there since 2022.

[core-ssh ~]$ ls -lah ~/config/core
-rw-------    1 root     root        2.0G Oct 28  2022 /root/config/core
[core-ssh ~]$

From past experience this is usually when something crashes it dumps a core file out but I didn’t want to delete it and find out the hard way that it’s something used real-time by Home Assistant. Does anyone know if I can just remove this 2GB file without bad ramifications?

you should be fine … as you say it’s a core dump

This should return nothing…

lsof 2>/dev/null | grep 'config/core'

As opposed to

lsof 2>/dev/null | grep 'config/'

If in doubt, always have a backup to hand :wink:

1 Like

Thanks for the detail. I appreciate it!

1 Like