zarkanian@sh.itjust.works to Linux@lemmy.ml · 4 hours agoAn amazing directory: /procsh.itjust.worksimagemessage-square30fedilinkarrow-up1220arrow-down11
arrow-up1219arrow-down1imageAn amazing directory: /procsh.itjust.workszarkanian@sh.itjust.works to Linux@lemmy.ml · 4 hours agomessage-square30fedilink
minus-squarerockSlayer@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up11·4 hours agoI know what a symlink is, but what is a magic symlink?
minus-squarezarkanian@sh.itjust.worksOPlinkfedilinkarrow-up17·3 hours agoA symlink that has been blessed by Richard Stallman.
minus-squareShadow@lemmy.calinkfedilinkarrow-up5·4 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-up3·3 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-up6·3 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·1 hour agoAh - it has its own special magical file system type, that’s the secret sauce. Neat!
minus-squareShadow@lemmy.calinkfedilinkarrow-up4·1 hour ago/dev and /sys are the other two special ones
I know what a symlink is, but what is a magic symlink?
A symlink that has been blessed by Richard Stallman.
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