From: Shawn H Corey > On 10-07-13 01:58 AM, John W. Krahn wrote: >> Harinatha Reddy M wrote: >>> And what if the file is being accessed by some process. Can we delete it? >> >> Probably not on Windows, probably yes on Unix/Linux. > > On Linux, the contents of the file will be kept until all processes that > have it open, closes it. This means that if you delete files hoping to > free up some disk space, you may not get it right away.
There is one other possibility where the space may not be free yet. Linux, like Unix, allows multiple directory entries to point to the same file (hard links). You may delete (unlink) the entry you know about, but if there are others, the file will not be removed until they are all gone. Then it will still be kept as long as any processes have it open. Bob McConnell -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/