3 ms·
That doesn't seem right. I can delete nano's executable while it's running, and rm can remove itself. What am I missing?
by rascul 3y ago
That doesn't seem right. I can delete nano's executable while it's running, and rm can remove itself.
What am I missing?
- shric 3y agorm doesn't actually modify the file. It does an unlink which removes the link from the filename to the file. Essentially, a file can have 0 or more names linked to it. As long as a file has at least one name or at least one process with it open, it will persevere. By contrast, shred actually writes to the underlying file.
- rascul 3y agoAhh, for some reason I completely missed that shred was involved.