I\'m using linux mint 13 xfce and I have a file named wv.gold
that I\'m trying to check in bash if it\'s open by any program (for instance, I opened it in sub
The lines that appear in the output of lsof
are open files. If your file is not there it means it is not open. Among the columns are PID (the process id of the program that has the file open) and the FD (the file descriptor associated with the open file). No particular value for these indicates open/closed. If it appears at all it means it's open.
Check out http://linux.die.net/man/8/lsof and search for the text contains the first nine characters