Operating System - HP-UX
1753916 Members
8494 Online
108810 Solutions
New Discussion

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 1
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.