cancel
Showing results for 
Search instead for 
Did you mean: 

Rmoving /core file on HP-UX

sksonkar
Contributor

Rmoving /core file on HP-UX

Hello,

 

I know we can remove core file using "rm -i core" command.

My question is: what happen if someone uses the command "rm -R /core" ?

 

Secondly, i heard once when core file was being written, it was deleted by someone by mistake. It did not release the space in / file system and system was rebooted.

What is best way to find out /core file is not being written when deleted  ?

 

Thanks,

Shiv

 

1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Removing /core file on HP-UX

>My question is: what happen if someone uses the command "rm -R /core"?

 

Well, if /core isn't a directory, -R is ignored.

 

>I heard once when core file was being written, it was deleted by someone by mistake. It did not release the space in / file system and system was rebooted.

 

You usually can't remove a core while it is being writing since the filesystem is just about locked down because of all of the I/O.  And if you do remove it, as soon is the core is closed, it is removed.