The unlink command merely deletes a file (or a list of files).
Well, actually, it doesn't delete files. It deletes links to files. In other words, it removes an entry in a directory structure and decrements a file's link count. A file may have more than one link. (See ln(1) for information on hard links.) In fact, even if the link count goes to zero, the file may not be deleted immediately; if there are open file descriptors pointing to it, it'll remain until they are closed.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: unlink Question
by sauoq
in thread unlink Question
by lisaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |