I recently had a Linux process which “leaked” file descriptors: It opened them and didn’t properly close some of them. If I had monitored this, I could tell – in advance – that the process was reaching its limit. Is there a nice, Bash or Python way to check the FD usage ratio for a given process in a Ubuntu
Tag: operating-system
Python: Get Mount Point on Windows or Linux
I need a function to determine if a directory is a mount point for a drive. I found this code already which works well for linux: But I’m not sure how I would get this to work on windows. Can I just assume the mount point is the drive letter (e.g. C:)? I believe it is possible to have a