Locking Executing Files: Windows does, Linux doesn't. Why?

前端 未结 8 1599
有刺的猬
有刺的猬 2020-12-04 09:18

I noticed when a file is executed on Windows (.exe or .dll), it is locked and cannot be deleted, moved or modified.

Linux, on the other hand, does not lock executing

8条回答
  •  没有蜡笔的小新
    2020-12-04 10:06

    NT variants have the

    openfiles

    command, which will show which processes have handles on which files. It does, however, require enabling the system global flag 'maintain objects list'

    openfiles /local /?

    tells you how to do this, and also that a performance penalty is incurred by doing so.

提交回复
热议问题