osx - Fast way to check if file is open on OS X -


is there fast way check if file handle closed command line on os x?

lsof works, of course, super slow.

you´ll want check out dtrace family man dtrace.

if you´re interested on pure "file actions" should have @ opensnoop, builds on dtrace , has been included since mac os x 10.6. can show file in use process (by -p pid or -n name) , watch files -f /path/to/file .


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -