linux - Where does a C program write output after I did "rm" on the output file? -
i ran rather nasty c program on computing cluster running redhat got infinite loop, within each of printed line of output. when realized creating file use disk space, ran "rm" on output file before killed program. unfortunately, per "df -h" space continued used on drive before killed program.
i can't find file written, i'm unable delete it. such file written to?
killing program should release disk space. until then, file unlinked folder, not cease exist (as inode) long actively open.
check ls -l /proc/<pid>/fd see files are; essentially, kernel knows process somewhere in /proc/<pid>.
read lot more on how deal these problems here: https://unix.stackexchange.com/questions/68523/find-and-remove-large-files-that-are-open-but-have-been-deleted
Comments
Post a Comment