The *nix command lsof
gives you a list of open files. Is anyone aware of a way that would also list how long a particular file has been open? Either by using lsof
or any other command. I'm using CentOS 5.3 and unfortunately I can't install additional repositories so I'd have to work from the default CentOS repos.
Thanks
lsof
or any other utils, so maybe there's an alternative solution to your problem... – plaes Jan 5 '12 at 10:29strace -e open,close program
orvalgrind
with the--track-fds=yes
option. – plaes Jan 5 '12 at 10:39