• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: April 8th, 2024

help-circle

  • exclusive, absolute

    Fine. You’re responsible now for every particle in the universes, the laws of physics don’t have control over them anymore. Planets will no longer orbit their stars. Electrons won’t repell other electrons, so things will just fall through each other. Unless you actively decide otherwise for each and ever one of the >10⁸⁰ particles. That’s a lot of responsibility for one person.



  • Yes. On Linux/Unix you don’t delete the file, you just delete it’s name, which is merely a link to the actual file. That’s also the reason why the syscalls name is actually unlink and not delete. As soon as there’s nothing pointing to a file anymore, it is deleted.

    As long as a process holds a file handle, there’s still a reference to said file, so it won’t be deleted. That saved me once, when I accidentally deleted a file I wanted to keep: As there still was some process keeping it alive, I could just go to /proc/[process id]/fd/[file descriptor id] and copy it to a safe location.