I have just asked in an interview that if someone mistakenly deletes apache logfile from /var/log/apache/access.log
while it's being written, can you recover it?
After my answer interviewer said that we can recover the inode
details of the apache process from the /proc
file system and then can recover those files. I couldn't understand that properly as it was over the phone.
So can anyone please explain how?