gedit use of file not showing in fuser

假如想象 提交于 2019-12-11 04:24:23

问题


I have started using the fuser command and it looks very useful. It seems to work well. However I noticed a little anomaly which is that if I open a file with gedit fuser doesn't tell me that gedit has accessed that file. It shows all the other processes I have tested it with, including scripts etc.

I am using Ubuntu 12.04 if that makes any difference.

Why would it not show gedit? And is there a way I can get around this problem?

Thanks for reading.


回答1:


fuser is only going to show files that are currently open. Many editors don't leave the file open. They open it, read it, then close it. So when you run fuser on that file it doesn't show anything because it's not currently open.



来源:https://stackoverflow.com/questions/17172915/gedit-use-of-file-not-showing-in-fuser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!