1753959 Members
7369 Online
108811 Solutions
New Discussion юеВ

Re: deleting files.

 
SOLVED
Go to solution
anang bohra
Occasional Contributor

deleting files.

hi there,
what happens when a file is deleted in HP Ux.
what are open files and how do we close them.
thanx in advance
anang
hi! everybody
2 REPLIES 2
Alexander M. Ermes
Honored Contributor
Solution

Re: deleting files.

Hi there.
The first byte of the entry in the cataloge of the filesystem will be overwritten with a specific character. The space on the disk will only be released, if that file is not kept open by any processes anymore. Open files menas,
that some process is busy working on that file.
Get the utility lsof at http://hpux.asknet.de , which will help you to identify, which process keeps which file open.
To release the deleted file just kill the process, that keeps the file open.
Rgds
Alexander M. Ermes

P.S.

If you have problems with HP-UX, pls place message in the appropriate forum.
This here is the Linux forum
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Sachin Patel
Honored Contributor

Re: deleting files.

Hi Anang,
As Alexander says, you kill the process id which is holding that file open. To find that process id command is "fuser -c filename"

In Unix some time even after killing processess it want go away. The only solution for that is to reboot the system. or
"kill 1 1" (This will restart the ineted)

Sachin
Is photography a hobby or another way to spend $