zarkanian@sh.itjust.works to Linux@lemmy.ml · 3 hours agoAn amazing directory: /procsh.itjust.worksimagemessage-square30linkfedilinkarrow-up1277arrow-down11
arrow-up1276arrow-down1imageAn amazing directory: /procsh.itjust.workszarkanian@sh.itjust.works to Linux@lemmy.ml · 3 hours agomessage-square30linkfedilink
minus-squareShadow@lemmy.calinkfedilinkarrow-up12·3 hours agoIf you delete a file that’s still open by the app, the link in proc will still exist and you can copy the file back out of proc.
minus-squareRustySharp@programming.devlinkfedilinkarrow-up5·2 hours agoDoes that not make them a hard link (pointing to a filesystem node) instead of a symlink (pointing to another filename)?
minus-squareShadow@lemmy.calinkfedilinkarrow-up8·2 hours agoNo, you can’t have a hard link cross filesystems and proc is its own fs type.
minus-squaregravitas_deficiency@sh.itjust.workslinkfedilinkEnglisharrow-up2·30 minutes agoAh - it has its own special magical file system type, that’s the secret sauce. Neat!
minus-squareShadow@lemmy.calinkfedilinkarrow-up2·11 minutes ago/dev and /sys are the other two special ones
If you delete a file that’s still open by the app, the link in proc will still exist and you can copy the file back out of proc.
Does that not make them a hard link (pointing to a filesystem node) instead of a symlink (pointing to another filename)?
No, you can’t have a hard link cross filesystems and proc is its own fs type.
Ah - it has its own special magical file system type, that’s the secret sauce. Neat!
/dev and /sys are the other two special ones